mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: ignore dynamic expiration date on story (#19425)
Fixes https://github.com/coder/coder/issues/19410
This commit is contained in:
@@ -80,15 +80,21 @@ export const CreateTokenForm: FC<CreateTokenFormProps> = ({
|
||||
</FormFields>
|
||||
</FormSection>
|
||||
<FormSection
|
||||
data-chromatic="ignore"
|
||||
title="Expiration"
|
||||
description={
|
||||
form.values.lifetime
|
||||
? `The token will expire on ${dayjs()
|
||||
.add(form.values.lifetime, "days")
|
||||
.utc()
|
||||
.format("MMMM DD, YYYY")}`
|
||||
: "Please set a token expiration."
|
||||
form.values.lifetime ? (
|
||||
<>
|
||||
The token will expire on{" "}
|
||||
<span data-chromatic="ignore">
|
||||
{dayjs()
|
||||
.add(form.values.lifetime, "days")
|
||||
.utc()
|
||||
.format("MMMM DD, YYYY")}
|
||||
</span>
|
||||
</>
|
||||
) : (
|
||||
"Please set a token expiration."
|
||||
)
|
||||
}
|
||||
classes={{ sectionInfo: classNames.sectionInfo }}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user