Skip to content

Commit 430a28c

Browse files
committed
fix: asset story breaking build
1 parent 73ec239 commit 430a28c

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

packages/ui/src/components/Asset/Asset.stories.tsx

+10-7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import assetList from '@fuels/assets';
12
import type { Meta, StoryObj } from '@storybook/react';
23
import { IconCurrencyEthereum } from '@tabler/icons-react';
34

@@ -16,7 +17,7 @@ export default meta;
1617
type Story = StoryObj<typeof Asset>;
1718

1819
const DEFAULT_ARGS = {
19-
asset: MOCK_ASSETS.eth,
20+
asset: assetList[0],
2021
amount: '1000000000',
2122
};
2223

@@ -52,13 +53,16 @@ export const CustomIcon: Story = {
5253
),
5354
};
5455

56+
const NO_ICON_ARGS = {
57+
asset: {
58+
...assetList[0],
59+
icon: '',
60+
},
61+
};
62+
5563
export const NoIcon: Story = {
5664
render: (args) => (
57-
<Asset
58-
{...args}
59-
{...DEFAULT_ARGS}
60-
asset={{ name: 'Ethereum', symbol: 'ETH' }}
61-
>
65+
<Asset {...args} {...DEFAULT_ARGS} {...NO_ICON_ARGS}>
6266
<Asset.Icon />
6367
<Asset.Name />
6468
</Asset>
@@ -76,7 +80,6 @@ export const AmountSymbol: Story = {
7680
};
7781

7882
const AMOUNT_ARGS = {
79-
asset: MOCK_ASSETS.eth,
8083
amount: '1000000001',
8184
precision: 9,
8285
};

0 commit comments

Comments
 (0)