Skip to content

Commit

Permalink
refactor: Rename NewHeader to Header (#2704)
Browse files Browse the repository at this point in the history
Follow-up-from:
- #2697
  • Loading branch information
joshlarson authored Jul 30, 2024
1 parent 862a45d commit b40bcbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions assets/src/components/routeLadder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ interface Props {
onAddDetour?: (route: Route) => void
}

export const NewHeader = ({
export const Header = ({
routeName,
onClose,
hasAlert,
Expand Down Expand Up @@ -215,7 +215,7 @@ const RouteLadder = ({

return (
<>
<NewHeader
<Header
routeName={route.name}
hasAlert={hasAlert}
onClose={() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -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: () => {},
Expand All @@ -13,10 +13,10 @@ const meta = {
argTypes: {
onClose: { table: { disable: true } },
},
} satisfies Meta<typeof RouteLadderHeader>
} satisfies Meta<typeof Header>

export default meta
type Story = StoryObj<typeof RouteLadderHeader>
type Story = StoryObj<typeof Header>

export const Default: Story = {}
export const WithAlert: Story = {
Expand Down

0 comments on commit b40bcbb

Please sign in to comment.