From b40bcbb9fc9e41374f27786465572e2396233fc8 Mon Sep 17 00:00:00 2001 From: Josh Larson Date: Tue, 30 Jul 2024 13:00:52 -0400 Subject: [PATCH] refactor: Rename NewHeader to Header (#2704) Follow-up-from: - https://github.com/mbta/skate/pull/2697 --- assets/src/components/routeLadder.tsx | 4 ++-- ...erHeader.stories.tsx => routeLadderHeader.stories.tsx} | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename assets/stories/skate-components/{newRouteLadderHeader.stories.tsx => routeLadderHeader.stories.tsx} (73%) diff --git a/assets/src/components/routeLadder.tsx b/assets/src/components/routeLadder.tsx index 1873cbf6b..17044db07 100644 --- a/assets/src/components/routeLadder.tsx +++ b/assets/src/components/routeLadder.tsx @@ -42,7 +42,7 @@ interface Props { onAddDetour?: (route: Route) => void } -export const NewHeader = ({ +export const Header = ({ routeName, onClose, hasAlert, @@ -215,7 +215,7 @@ const RouteLadder = ({ return ( <> - { diff --git a/assets/stories/skate-components/newRouteLadderHeader.stories.tsx b/assets/stories/skate-components/routeLadderHeader.stories.tsx similarity index 73% rename from assets/stories/skate-components/newRouteLadderHeader.stories.tsx rename to assets/stories/skate-components/routeLadderHeader.stories.tsx index 4342fbf72..1a6612497 100644 --- a/assets/stories/skate-components/newRouteLadderHeader.stories.tsx +++ b/assets/stories/skate-components/routeLadderHeader.stories.tsx @@ -1,9 +1,9 @@ import type { Meta, StoryObj } from "@storybook/react" -import { NewHeader as RouteLadderHeader } from "../../src/components/routeLadder" +import { Header } from "../../src/components/routeLadder" const meta = { - component: RouteLadderHeader, + component: Header, args: { routeName: "39", onClose: () => {}, @@ -13,10 +13,10 @@ const meta = { argTypes: { onClose: { table: { disable: true } }, }, -} satisfies Meta +} satisfies Meta export default meta -type Story = StoryObj +type Story = StoryObj export const Default: Story = {} export const WithAlert: Story = {