Skip to content

Add Service Banners #5272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Dec 6, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Write storybook
  • Loading branch information
ammario committed Dec 3, 2022
commit e4255d99ace7549cf87cee2fca16bd2d1d626e8d
15 changes: 11 additions & 4 deletions site/src/components/ServiceBanner/ServiceBannerView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,23 @@ import { Story } from "@storybook/react"
import { ServiceBannerView, ServiceBannerViewProps } from "./ServiceBannerView"

export default {
title: "components/LicenseBannerView",
title: "components/ServiceBannerView",
component: ServiceBannerView,
}

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

export const GoodColor = Template.bind({})
GoodColor.args = {
export const Production = Template.bind({})
Production.args = {
message: "weeeee",
backgroundColor: "#00FF00",
backgroundColor: "#FFFFFF",
}

export const Preview = Template.bind({})
Preview.args = {
message: "weeeee",
backgroundColor: "#000000",
preview: true,
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import Switch from "@material-ui/core/Switch"
import { BlockPicker } from "react-color"
import { useTheme } from "@material-ui/core/styles"
import FormHelperText from "@material-ui/core/FormHelperText"
import { Button } from "@material-ui/core"
import Button from "@material-ui/core/Button"

export const Language = {
messageLabel: "Message",
Expand Down