Skip to content

Commit 44297c6

Browse files
committed
Storybook
1 parent c0ae875 commit 44297c6

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { Story } from "@storybook/react"
2+
import {
3+
TemplateVersionWarnings,
4+
TemplateVersionWarningsProps,
5+
} from "./TemplateVersionWarnings"
6+
7+
export default {
8+
title: "components/TemplateVersionWarnings",
9+
component: TemplateVersionWarnings,
10+
}
11+
12+
const Template: Story<TemplateVersionWarningsProps> = (args) => (
13+
<TemplateVersionWarnings {...args} />
14+
)
15+
16+
export const DeprecatedParameters = Template.bind({})
17+
DeprecatedParameters.args = {
18+
warnings: ["DEPRECATED_PARAMETERS"],
19+
}

site/src/components/TemplateVersionWarnings/TemplateVersionWarnings.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import { AlertBanner } from "components/AlertBanner/AlertBanner"
44
import { Maybe } from "components/Conditionals/Maybe"
55
import Link from "@mui/material/Link"
66

7-
export interface TemplateVersionWarnings {
7+
export interface TemplateVersionWarningsProps {
88
warnings?: TypesGen.TemplateVersionWarning[]
99
}
1010

1111
export const TemplateVersionWarnings: FC<
12-
React.PropsWithChildren<TemplateVersionWarnings>
12+
React.PropsWithChildren<TemplateVersionWarningsProps>
1313
> = ({ warnings }) => {
1414
if (!warnings) {
1515
return <></>

0 commit comments

Comments
 (0)