File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
site/src/pages/CreateTokenPage Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -80,15 +80,21 @@ export const CreateTokenForm: FC<CreateTokenFormProps> = ({
80
80
</ FormFields >
81
81
</ FormSection >
82
82
< FormSection
83
- data-chromatic = "ignore"
84
83
title = "Expiration"
85
84
description = {
86
- form . values . lifetime
87
- ? `The token will expire on ${ dayjs ( )
88
- . add ( form . values . lifetime , "days" )
89
- . utc ( )
90
- . format ( "MMMM DD, YYYY" ) } `
91
- : "Please set a token expiration."
85
+ form . values . lifetime ? (
86
+ < >
87
+ The token will expire on{ " " }
88
+ < span data-chromatic = "ignore" >
89
+ { dayjs ( )
90
+ . add ( form . values . lifetime , "days" )
91
+ . utc ( )
92
+ . format ( "MMMM DD, YYYY" ) }
93
+ </ span >
94
+ </ >
95
+ ) : (
96
+ "Please set a token expiration."
97
+ )
92
98
}
93
99
classes = { { sectionInfo : classNames . sectionInfo } }
94
100
>
You can’t perform that action at this time.
0 commit comments