-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
97 additions
and
300 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...mponents/ui/NavbarV2/NavbarV2.module.scss → ...mponents/common/Navbar/Navbar.module.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.NavbarV2 { | ||
.Navbar { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { MemoryRouter } from "react-router-dom"; | ||
|
||
import Navbar from "@/components/common/Navbar/Navbar"; | ||
import Icon from "@/components/ui/Icon/Icon"; | ||
import Text from "@/components/ui/Text/Text"; | ||
|
||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
const meta: Meta = { | ||
title: "Components/Navbar", | ||
decorators: [ | ||
(Story) => ( | ||
<MemoryRouter> | ||
<div style={{ width: 350, border: "1px solid #ccc" }}> | ||
<Story /> | ||
</div> | ||
</MemoryRouter> | ||
), | ||
], | ||
}; | ||
|
||
export default meta; | ||
|
||
type Story = StoryObj; | ||
|
||
export const HomeNavbar: Story = { | ||
name: "HomeNavbar", | ||
render: () => ( | ||
<Navbar> | ||
<Navbar.LeftButton> | ||
<Icon name="logo" /> | ||
</Navbar.LeftButton> | ||
<Navbar.RightButton> | ||
<Text variant="bodySm" color="secondary"> | ||
앱 공유하기 | ||
</Text> | ||
</Navbar.RightButton> | ||
</Navbar> | ||
), | ||
}; | ||
|
||
export const ArrowNavbar: Story = { | ||
name: "ArrowNavbar", | ||
render: () => ( | ||
<Navbar> | ||
<Navbar.LeftButton> | ||
<Icon name="leftArrow" /> | ||
</Navbar.LeftButton> | ||
</Navbar> | ||
), | ||
}; | ||
|
||
export const CloseNavbar: Story = { | ||
name: "CloseNavbar", | ||
render: () => ( | ||
<Navbar> | ||
<Navbar.RightButton> | ||
<Icon name="close" /> | ||
</Navbar.RightButton> | ||
</Navbar> | ||
), | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.