This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
-
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.
Merge pull request #36 from saitamau-maximum/feat/fill-storybook
storybook追加祭り
- Loading branch information
Showing
6 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ const preview: Preview = { | |
date: /Date$/i, | ||
}, | ||
}, | ||
layout: "fullscreen", | ||
}, | ||
}; | ||
|
||
|
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
30 changes: 30 additions & 0 deletions
30
client/src/components/loading-overlay/__stories__/loading-overlay.stories.tsx
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,30 @@ | ||
import { Meta } from "@storybook/react"; | ||
import { Theme } from "@/styles/__stories__/Theme"; | ||
import { LoadingOverlay } from ".."; | ||
import { LoadingOverlayContext } from "@/providers/loading-overlay"; | ||
|
||
const meta = { | ||
title: "Components/LoadingOverlay", | ||
} satisfies Meta; | ||
|
||
export default meta; | ||
|
||
const Common = () => ( | ||
<LoadingOverlayContext.Provider | ||
value={{ isLoading: true, setIsLoading: () => {} }} | ||
> | ||
<LoadingOverlay /> | ||
</LoadingOverlayContext.Provider> | ||
); | ||
|
||
export const Light = () => ( | ||
<Theme.Light> | ||
<Common /> | ||
</Theme.Light> | ||
); | ||
|
||
export const Dark = () => ( | ||
<Theme.Dark> | ||
<Common /> | ||
</Theme.Dark> | ||
); |
22 changes: 22 additions & 0 deletions
22
client/src/features/onboarding/pages/top/__stories__/top.stories.tsx
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,22 @@ | ||
import { OnboardingPage } from "../page"; | ||
|
||
import { Meta } from "@storybook/react"; | ||
import { Theme } from "@/styles/__stories__/Theme"; | ||
|
||
const meta = { | ||
title: "Pages/Onboarding", | ||
} satisfies Meta; | ||
|
||
export default meta; | ||
|
||
export const Light = () => ( | ||
<Theme.Light full> | ||
<OnboardingPage /> | ||
</Theme.Light> | ||
); | ||
|
||
export const Dark = () => ( | ||
<Theme.Dark full> | ||
<OnboardingPage /> | ||
</Theme.Dark> | ||
); |
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 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