File tree 2 files changed +12
-8
lines changed
site/src/pages/CreateTokenPage
2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -80,14 +80,12 @@ export const CreateTokenForm: FC<CreateTokenFormProps> = ({
80
80
< FormSection
81
81
title = "Expiration"
82
82
description = {
83
- < span data-chromatic = "ignore" >
84
- { form . values . lifetime
85
- ? `The token will expire on ${ dayjs ( )
86
- . add ( form . values . lifetime , "days" )
87
- . utc ( )
88
- . format ( "MMMM DD, YYYY" ) } `
89
- : "Please set a token expiration." }
90
- </ span >
83
+ form . values . lifetime
84
+ ? `The token will expire on ${ dayjs ( )
85
+ . add ( form . values . lifetime , "days" )
86
+ . utc ( )
87
+ . format ( "MMMM DD, YYYY" ) } `
88
+ : "Please set a token expiration."
91
89
}
92
90
classes = { { sectionInfo : classNames . sectionInfo } }
93
91
>
Original file line number Diff line number Diff line change @@ -12,6 +12,12 @@ const meta: Meta<typeof CreateTokenPage> = {
12
12
} ,
13
13
] ,
14
14
} ,
15
+ decorators : [
16
+ ( Story ) => {
17
+ Date . now = ( ) => new Date ( "01/01/2014" ) . getTime ( ) ;
18
+ return < Story /> ;
19
+ } ,
20
+ ] ,
15
21
} ;
16
22
17
23
export default meta ;
You can’t perform that action at this time.
0 commit comments