diff --git a/src/components/BannerGrid/BannerGrid.stories.tsx b/src/components/BannerGrid/BannerGrid.stories.tsx deleted file mode 100644 index e3c824d1159..00000000000 --- a/src/components/BannerGrid/BannerGrid.stories.tsx +++ /dev/null @@ -1,181 +0,0 @@ -import { Info } from "lucide-react" -import { useTranslations } from "next-intl" -import { Meta, StoryObj } from "@storybook/react" - -import { ChildOnlyProp } from "@/lib/types" - -import { Image } from "@/components/Image" -import Tooltip from "@/components/Tooltip" -import InlineLink from "@/components/ui/Link" - -import { langViewportModes } from "../../../.storybook/modes" -import { ContentContainer } from "../MdComponents" - -import { - Banner as BannerComponent, - BannerBody as BannerBodyComponent, - BannerGrid as BannerGridComponent, - BannerGridCell as BannerGridCellComponent, - BannerImage as BannerImageComponent, -} from "." - -import stats from "@/public/images/upgrades/newrings.png" - -const meta = { - title: "Molecules / Display Content / Banner Grid", - component: BannerComponent, - parameters: { - layout: "fullscreen", - chromatic: { - modes: { - ...langViewportModes, - }, - }, - }, - decorators: [ - (Story) => ( -
- - - -
- ), - ], -} satisfies Meta - -export default meta - -type Story = StoryObj - -const PAGE_WHAT_IS_ETH = "page-what-is-ethereum" - -const tooltipContent = ({ apiUrl, apiProvider, ariaLabel }) => { - const t = useTranslations("common") - - return ( -
- {t("data-provided-by")}{" "} - - {apiProvider} - -
- ) -} - -const StatPrimary = (props: ChildOnlyProp) => ( -
-) - -const StatDescription = (props: ChildOnlyProp) => ( -
-) - -export const Banner: Story = { - render: () => { - return ( - -
Banner
-
- ) - }, -} - -export const BannerBody: Story = { - render: () => { - return ( - - -
- Banner Body -
-
-
- ) - }, -} - -export const BannerImage: Story = { - render: () => { - return ( - - - - - - ) - }, -} - -export const BannerGridCell: Story = { - render: () => { - const t = useTranslations(PAGE_WHAT_IS_ETH) - - return ( - - - - 4k+ - - {t("page-what-is-ethereum-ethereum-in-numbers-stat-1-desc")} - -   - - - - - - - - - - - ) - }, -} - -export const BannerGrid: Story = { - render: () => { - const t = useTranslations(PAGE_WHAT_IS_ETH) - - return ( - - - - {Array.from({ length: 6 }, (_, i) => i + 1).map((item) => ( - - {item}k+ - - {t("page-what-is-ethereum-ethereum-in-numbers-stat-1-desc")} - -   - - - - - - - - - ))} - - - - - - - ) - }, -} diff --git a/src/components/BannerGrid/index.tsx b/src/components/BannerGrid/index.tsx deleted file mode 100644 index a461be9381f..00000000000 --- a/src/components/BannerGrid/index.tsx +++ /dev/null @@ -1,53 +0,0 @@ -import React from "react" - -import { ChildOnlyProp } from "@/lib/types" - -import { Flex } from "@/components/ui/flex" - -import { cn } from "@/lib/utils/cn" - -export const Banner = ({ children }: ChildOnlyProp) => { - return ( - - {children} - - ) -} - -export const BannerBody = ({ children }: ChildOnlyProp) => { - return
{children}
-} - -export const BannerImage = ({ children }: ChildOnlyProp) => { - return {children} -} - -export const BannerGrid = ({ children }: ChildOnlyProp) => { - return ( -
- {children} -
- ) -} - -export const BannerGridCell = ({ children }: ChildOnlyProp) => { - return ( - - {children} - - ) -}