Skip to content

Commit 81d7070

Browse files
chore: add more profile dropdown story variants
1 parent fcb57d2 commit 81d7070

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

src/design-system/profile-dropdown/profile-dropdown-trigger.stories.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,8 @@ export const Overview = (): JSX.Element => (
6464
<Grid columns="$1">
6565
<Cell>
6666
<Section title="Examples">
67-
<Flex flexDirection="column" alignItems="center" w="$fill">
67+
<Flex gap="$16" alignItems="center" w="$fill" justifyContent="center">
6868
<TriggerSample />
69-
<Divider my="$32" />
7069
<TriggerSample hasSubtitle={false} />
7170
</Flex>
7271
</Section>

src/design-system/profile-dropdown/profile-dropdown.stories.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,28 @@ const WalletStatuses = (): JSX.Element => (
6969
</Variants.Row>
7070
);
7171

72+
const WalletStatusesFlat = (): JSX.Element => (
73+
<Variants.Row>
74+
<Variants.Cell>
75+
<WalletStatus type="flat" status="synced" label="Wallet synced (flat)" />
76+
</Variants.Cell>
77+
<Variants.Cell>
78+
<WalletStatus
79+
type="flat"
80+
status="syncing"
81+
label="Wallet syncing (flat)"
82+
/>
83+
</Variants.Cell>
84+
<Variants.Cell>
85+
<WalletStatus
86+
type="flat"
87+
status="error"
88+
label="Not synced to the blockchain (flat)"
89+
/>
90+
</Variants.Cell>
91+
</Variants.Row>
92+
);
93+
7294
export const Overview = (): JSX.Element => (
7395
<Grid columns="$1">
7496
<Cell>
@@ -81,11 +103,13 @@ export const Overview = (): JSX.Element => (
81103

82104
<Variants.Table headers={['Synced', 'Syncing', 'Not synced']}>
83105
<WalletStatuses />
106+
<WalletStatusesFlat />
84107
</Variants.Table>
85108

86109
<LocalThemeProvider colorScheme={ThemeColorScheme.Dark}>
87110
<Variants.Table>
88111
<WalletStatuses />
112+
<WalletStatusesFlat />
89113
</Variants.Table>
90114
</LocalThemeProvider>
91115
</Section>

0 commit comments

Comments
 (0)