-
Notifications
You must be signed in to change notification settings - Fork 929
feat: Manage tokens in dashboard #5444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This Pull Request is becoming stale. In order to minimize WIP, prevent merge conflicts and keep the tracker readable, I'm going close to this PR in 3 days if there isn't more activity. |
4587f70
to
4500b71
Compare
d3321f4
to
01be801
Compare
{tokens?.map((token) => { | ||
const t = dayjs(token.last_used) | ||
const now = dayjs() | ||
const lastUsed = now.isBefore(t.add(100, "year")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this is needed because last_used
can't be set to null? Might be nice to put this in a util function with a little comment.
expiresAtLabel: "Expires At", | ||
emptyMessage: "No tokens found", | ||
ariaDeleteLabel: "Delete Token", | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have an alternative to Language
now, react-i18n, but if it's a hassle, don't worry about it, we're going to revisit whether it's worth the time
01be801
to
24e3f99
Compare
Uh oh!
There was an error while loading. Please reload this page.