File tree 2 files changed +21
-2
lines changed
site/src/components/TemplateVersionWarnings
2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ import { AlertBanner } from "components/AlertBanner/AlertBanner"
4
4
import { Maybe } from "components/Conditionals/Maybe"
5
5
import Link from "@mui/material/Link"
6
6
7
- export interface TemplateVersionWarnings {
7
+ export interface TemplateVersionWarningsProps {
8
8
warnings ?: TypesGen . TemplateVersionWarning [ ]
9
9
}
10
10
11
11
export const TemplateVersionWarnings : FC <
12
- React . PropsWithChildren < TemplateVersionWarnings >
12
+ React . PropsWithChildren < TemplateVersionWarningsProps >
13
13
> = ( { warnings } ) => {
14
14
if ( ! warnings ) {
15
15
return < > </ >
You can’t perform that action at this time.
0 commit comments