Skip to content

Commit 9407766

Browse files
committed
chore(update): run yarn install
1 parent ab4b02e commit 9407766

File tree

1 file changed

+32
-26
lines changed

1 file changed

+32
-26
lines changed

src/components/BannerGrid/BannerGrid.stories.tsx

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,18 @@ import Text from "@/components/OldText"
88
import { getTranslation } from "@/storybook-utils"
99

1010
import { langViewportModes } from "../../../.storybook/modes"
11+
import { ContentContainer } from "../MdComponents"
1112

1213
import {
13-
Banner as BannerComponent, BannerBody as BannerBodyComponent,
14+
Banner as BannerComponent,
15+
BannerBody as BannerBodyComponent,
1416
BannerGrid as BannerGridComponent,
1517
BannerGridCell as BannerGridCellComponent,
1618
BannerImage as BannerImageComponent,
1719
} from "."
1820

1921
import stats from "@/public/images/upgrades/newrings.png"
2022

21-
2223
const meta = {
2324
title: "Molecules / Display Content / Banner",
2425
component: BannerComponent,
@@ -33,17 +34,17 @@ const meta = {
3334
decorators: [
3435
(Story) => (
3536
<Box position="relative" w="full">
36-
{/* <ContentContainer> */}
37+
<ContentContainer>
3738
<Story />
38-
{/* </ContentContainer> */}
39+
</ContentContainer>
3940
</Box>
40-
)
41-
]
41+
),
42+
],
4243
} satisfies Meta<typeof BannerComponent>
4344

4445
export default meta
4546

46-
type Story = StoryObj<typeof meta>;
47+
type Story = StoryObj<typeof meta>
4748

4849
export const Banner: Story = {
4950
render: () => {
@@ -52,7 +53,7 @@ export const Banner: Story = {
5253
<div>What </div>
5354
</BannerComponent>
5455
)
55-
}
56+
},
5657
}
5758

5859
export const BannerBody: Story = {
@@ -62,7 +63,7 @@ export const BannerBody: Story = {
6263
<div>What </div>
6364
</BannerBodyComponent>
6465
)
65-
}
66+
},
6667
}
6768

6869
export const BannerImage: Story = {
@@ -72,29 +73,34 @@ export const BannerImage: Story = {
7273
<Image src={stats} alt="" width={400} />
7374
</BannerImageComponent>
7475
)
75-
}
76+
},
7677
}
7778

7879
export const BannerGrid: Story = {
7980
render: () => {
8081
const PAGE_WHAT_IS_ETH = "page-what-is-ethereum"
8182
return (
8283
<BannerGridComponent>
83-
{Array.from({ length: 6 }, (_, i) => i + 1).map(item => <BannerGridCellComponent key={item}>
84-
<Box fontSize="5xl" mb={4} lineHeight={1}>
85-
{item}k+
86-
</Box>
87-
<Box fontSize="md" color="text200">
88-
{getTranslation("page-what-is-ethereum-ethereum-in-numbers-stat-1-desc", PAGE_WHAT_IS_ETH)}
89-
<Text as="span" whiteSpace="nowrap">
90-
&nbsp;
91-
<Box as="span">
92-
<Icon as={MdInfoOutline} verticalAlign="middle" />
93-
</Box>
94-
</Text>
95-
</Box>
96-
</BannerGridCellComponent>)}
84+
{Array.from({ length: 6 }, (_, i) => i + 1).map((item) => (
85+
<BannerGridCellComponent key={item}>
86+
<Box fontSize="5xl" mb={4} lineHeight={1}>
87+
{item}k+
88+
</Box>
89+
<Box fontSize="md" color="text200">
90+
{getTranslation(
91+
"page-what-is-ethereum-ethereum-in-numbers-stat-1-desc",
92+
PAGE_WHAT_IS_ETH
93+
)}
94+
<Text as="span" whiteSpace="nowrap">
95+
&nbsp;
96+
<Box as="span">
97+
<Icon as={MdInfoOutline} verticalAlign="middle" />
98+
</Box>
99+
</Text>
100+
</Box>
101+
</BannerGridCellComponent>
102+
))}
97103
</BannerGridComponent>
98104
)
99-
}
100-
}
105+
},
106+
}

0 commit comments

Comments
 (0)