Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc70a786

Browse files
chore: ignore dynamic expiration date on story (#19425)
Fixeshttps://github.com/coder/coder/issues/19410
1 parent7bcbb83 commitc70a786

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

‎site/src/pages/CreateTokenPage/CreateTokenForm.tsx‎

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,21 @@ export const CreateTokenForm: FC<CreateTokenFormProps> = ({
8080
</FormFields>
8181
</FormSection>
8282
<FormSection
83-
data-chromatic="ignore"
8483
title="Expiration"
8584
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+
<spandata-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+
)
9298
}
9399
classes={{sectionInfo:classNames.sectionInfo}}
94100
>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp