Commit 430a28c 1 parent 73ec239 commit 430a28c Copy full SHA for 430a28c
File tree 1 file changed +10
-7
lines changed
packages/ui/src/components/Asset
1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change
1
+ import assetList from '@fuels/assets' ;
1
2
import type { Meta , StoryObj } from '@storybook/react' ;
2
3
import { IconCurrencyEthereum } from '@tabler/icons-react' ;
3
4
@@ -16,7 +17,7 @@ export default meta;
16
17
type Story = StoryObj < typeof Asset > ;
17
18
18
19
const DEFAULT_ARGS = {
19
- asset : MOCK_ASSETS . eth ,
20
+ asset : assetList [ 0 ] ,
20
21
amount : '1000000000' ,
21
22
} ;
22
23
@@ -52,13 +53,16 @@ export const CustomIcon: Story = {
52
53
) ,
53
54
} ;
54
55
56
+ const NO_ICON_ARGS = {
57
+ asset : {
58
+ ...assetList [ 0 ] ,
59
+ icon : '' ,
60
+ } ,
61
+ } ;
62
+
55
63
export const NoIcon : Story = {
56
64
render : ( args ) => (
57
- < Asset
58
- { ...args }
59
- { ...DEFAULT_ARGS }
60
- asset = { { name : 'Ethereum' , symbol : 'ETH' } }
61
- >
65
+ < Asset { ...args } { ...DEFAULT_ARGS } { ...NO_ICON_ARGS } >
62
66
< Asset . Icon />
63
67
< Asset . Name />
64
68
</ Asset >
@@ -76,7 +80,6 @@ export const AmountSymbol: Story = {
76
80
} ;
77
81
78
82
const AMOUNT_ARGS = {
79
- asset : MOCK_ASSETS . eth ,
80
83
amount : '1000000001' ,
81
84
precision : 9 ,
82
85
} ;
You can’t perform that action at this time.
0 commit comments