Skip to content

Commit e4255d9

Browse files
committed
Write storybook
1 parent c546602 commit e4255d9

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

site/src/components/ServiceBanner/ServiceBannerView.stories.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,23 @@ import { Story } from "@storybook/react"
22
import { ServiceBannerView, ServiceBannerViewProps } from "./ServiceBannerView"
33

44
export default {
5-
title: "components/LicenseBannerView",
5+
title: "components/ServiceBannerView",
66
component: ServiceBannerView,
77
}
88

99
const Template: Story<ServiceBannerViewProps> = (args) => (
1010
<ServiceBannerView {...args} />
1111
)
1212

13-
export const GoodColor = Template.bind({})
14-
GoodColor.args = {
13+
export const Production = Template.bind({})
14+
Production.args = {
1515
message: "weeeee",
16-
backgroundColor: "#00FF00",
16+
backgroundColor: "#FFFFFF",
17+
}
18+
19+
export const Preview = Template.bind({})
20+
Preview.args = {
21+
message: "weeeee",
22+
backgroundColor: "#000000",
23+
preview: true,
1724
}

site/src/pages/DeploySettingsPage/ServiceBannerSettingsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import Switch from "@material-ui/core/Switch"
2323
import { BlockPicker } from "react-color"
2424
import { useTheme } from "@material-ui/core/styles"
2525
import FormHelperText from "@material-ui/core/FormHelperText"
26-
import { Button } from "@material-ui/core"
26+
import Button from "@material-ui/core/Button"
2727

2828
export const Language = {
2929
messageLabel: "Message",

0 commit comments

Comments
 (0)