Skip to content

Commit 94fcb1e

Browse files
authored
Merge pull request #168 from input-output-hk/feat/add-wallet-options
feat: add new wallet types to wallet option component
2 parents 4a039d6 + cde8d29 commit 94fcb1e

File tree

7 files changed

+46
-3
lines changed

7 files changed

+46
-3
lines changed

src/design-system/profile-dropdown/profile-dropdown-wallet-icon.component.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const icons: Record<WalletType, FC<React.SVGProps<SVGSVGElement>>> = {
2020
hot: HotWallet,
2121
cold: ColdWallet,
2222
shared: SharedWallet,
23+
midnight: HotWallet,
24+
bitcoin: HotWallet,
2325
};
2426

2527
export const WalletIcon = ({ type, testId }: Readonly<Props>): JSX.Element => {

src/design-system/profile-dropdown/profile-dropdown-wallet-icon.css.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ export const container = recipe({
3535
fontSize: '24px',
3636
},
3737
]),
38+
midnight: sx({
39+
background: '$data_bright_blue',
40+
}),
41+
bitcoin: sx({
42+
background: '$data_orange',
43+
}),
3844
},
3945
},
4046

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ export const Overview = (): JSX.Element => (
8484
type="shared"
8585
/>
8686
</Variants.Cell>
87+
<Variants.Cell>
88+
<WalletOption
89+
title="Bitcoin Wallet"
90+
subtitle="Account #0"
91+
type="bitcoin"
92+
/>
93+
</Variants.Cell>
94+
<Variants.Cell>
95+
<WalletOption
96+
title="Midnight Wallet"
97+
subtitle="Account #0"
98+
type="midnight"
99+
/>
100+
</Variants.Cell>
87101
</Variants.Row>
88102
</Variants.Table>
89103
</Flex>
@@ -122,6 +136,22 @@ export const Overview = (): JSX.Element => (
122136
onOpenEditWallet={action('onOpenEditWallet')}
123137
/>
124138
</Variants.Cell>
139+
<Variants.Cell>
140+
<WalletOption
141+
title="Bitcoin Wallet"
142+
subtitle="Lace Team"
143+
type="bitcoin"
144+
onOpenEditWallet={action('onOpenEditWallet')}
145+
/>
146+
</Variants.Cell>
147+
<Variants.Cell>
148+
<WalletOption
149+
title="Midnight Wallet"
150+
subtitle="Lace Team"
151+
type="midnight"
152+
onOpenEditWallet={action('onOpenEditWallet')}
153+
/>
154+
</Variants.Cell>
125155
</Variants.Row>
126156
</Variants.Table>
127157
</Flex>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export type WalletType = 'cold' | 'hot' | 'shared';
1+
export type WalletType = 'cold' | 'hot' | 'shared' | 'midnight' | 'bitcoin';

src/design-tokens/colors.data.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ export const colors = {
209209
$data_yellow: '',
210210
$data_orange: '',
211211
$white: '',
212+
$data_bright_blue: '',
212213

213214
$educational_card_root_container_bgColor: '',
214215
$educational_card_root_container_borderColor: '',
@@ -329,6 +330,7 @@ export const lightColorScheme = {
329330
$secondary_cream: '#FCF5E3',
330331
$secondary_data_green: '#2CB67D',
331332
$secondary_data_blue: '#3489F7',
333+
$secondary_data_bright_blue: '#0000FE',
332334
} as const;
333335

334336
export const darkColorScheme = {
@@ -355,4 +357,5 @@ export const darkColorScheme = {
355357
$secondary_lace_yellow: '#FDC300',
356358
$secondary_data_green: '#2CB67D',
357359
$secondary_data_blue: '#3489F7',
360+
$secondary_data_bright_blue: '#0000FE',
358361
} as const;

src/design-tokens/theme/dark-theme.css.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ const colors: Colors = {
167167

168168
$assets_table_container_bgColor_hover: darkColorScheme.$primary_mid_grey,
169169

170-
$assets_table_badge_bgColor: '#0000FE',
170+
$assets_table_badge_bgColor: lightColorScheme.$secondary_data_bright_blue,
171171
$assets_table_badge_textColor: lightColorScheme.$primary_white,
172172

173173
$dialog_container_bgColor: darkColorScheme.$primary_light_black,
@@ -296,6 +296,7 @@ const colors: Colors = {
296296
$data_yellow: darkColorScheme.$secondary_lace_yellow,
297297
$data_orange: darkColorScheme.$secondary_data_orange,
298298
$white: darkColorScheme.$primary_white,
299+
$data_bright_blue: darkColorScheme.$secondary_data_bright_blue,
299300

300301
$educational_card_root_container_bgColor: darkColorScheme.$primary_mid_black,
301302
$educational_card_root_container_borderColor: colorTransparent,

src/design-tokens/theme/light-theme.css.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ const colors: Colors = {
180180

181181
$assets_table_container_bgColor_hover: lightColorScheme.$primary_light_grey,
182182

183-
$assets_table_badge_bgColor: '#0000FE',
183+
$assets_table_badge_bgColor: lightColorScheme.$secondary_data_bright_blue,
184184
$assets_table_badge_textColor: lightColorScheme.$primary_white,
185185

186186
$dialog_container_bgColor: lightColorScheme.$primary_white,
@@ -316,6 +316,7 @@ const colors: Colors = {
316316
$data_yellow: lightColorScheme.$secondary_lace_yellow,
317317
$data_orange: lightColorScheme.$secondary_data_orange,
318318
$white: lightColorScheme.$primary_white,
319+
$data_bright_blue: lightColorScheme.$secondary_data_bright_blue,
319320

320321
$educational_card_root_container_bgColor: lightColorScheme.$primary_white,
321322
$educational_card_root_container_borderColor:

0 commit comments

Comments
 (0)