Files
Joshen Lim 5c9ab30902 Close nav bar on click link (#21686)
* Close nav bar on click link

* Remove onClick for navigationiconbutton

* If user clicked on nav icon thats within the nav bar, dont reopen until mouse left side bar once

* Fix
2024-03-04 15:05:20 +08:00

30 lines
782 B
TypeScript

import { NewAccessToken } from 'data/access-tokens/access-tokens-create-mutation'
import { Alert, Input } from 'ui'
interface NewTokenBannerProps {
token: NewAccessToken
}
const NewTokenBanner = ({ token }: NewTokenBannerProps) => {
return (
<Alert withIcon variant="success" title="Successfully generated a new token!">
<div className="w-full space-y-2">
<p className="text-sm">
Do copy this access token and store it in a secure place - you will not be able to see it
again.
</p>
<Input
copy
readOnly
size="small"
className="max-w-xl input-mono"
value={token.token}
onChange={() => {}}
/>
</div>
</Alert>
)
}
export default NewTokenBanner