generated from storybookjs/addon-kit
-
Notifications
You must be signed in to change notification settings - Fork 3
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 #205 from chromaui/no-dev-server
Show screen when there's no dev server
- Loading branch information
Showing
6 changed files
with
54 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { NoDevServer } from "./NoDevServer"; | ||
|
||
const meta = { | ||
component: NoDevServer, | ||
} satisfies Meta<typeof NoDevServer>; | ||
|
||
export const Default = {} satisfies StoryObj<typeof meta>; | ||
|
||
export default meta; |
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,28 @@ | ||
import React from "react"; | ||
|
||
import { Code } from "../../components/Code"; | ||
import { Container } from "../../components/Container"; | ||
import { Heading } from "../../components/Heading"; | ||
import { VisualTestsIcon } from "../../components/icons/VisualTestsIcon"; | ||
import { Screen } from "../../components/Screen"; | ||
import { Stack } from "../../components/Stack"; | ||
import { Text } from "../../components/Text"; | ||
|
||
export const NoDevServer = () => { | ||
return ( | ||
<Screen footer={null}> | ||
<Container> | ||
<Stack> | ||
<div> | ||
<VisualTestsIcon /> | ||
<Heading>Visual tests</Heading> | ||
<Text> | ||
Visual tests only runs locally. To test this Storybook, clone it to your machine and | ||
run <Code>npx storybook dev</Code>. | ||
</Text> | ||
</div> | ||
</Stack> | ||
</Container> | ||
</Screen> | ||
); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
declare module "*.png" { | ||
const content: any; | ||
export default content; | ||
} | ||
} |