Skip to content

Commit c70a786

Browse files
chore: ignore dynamic expiration date on story (#19425)
Fixes https://github.com/coder/coder/issues/19410
1 parent 7bcbb83 commit c70a786

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+
<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+
)
9298
}
9399
classes={{ sectionInfo: classNames.sectionInfo }}
94100
>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy