chore: finishing touches

This commit is contained in:
Catalin Pit
2023-12-18 12:24:42 +02:00
parent 19736ce60b
commit da03fc1fd0
3 changed files with 5 additions and 4 deletions

View File

@ -88,7 +88,7 @@ export default function DeleteTokenDialog({
variant: 'destructive',
duration: 5000,
description:
'We encountered an unknown error while attempting to delete this team. Please try again later.',
'We encountered an unknown error while attempting to delete this token. Please try again later.',
});
}
};
@ -151,7 +151,7 @@ export default function DeleteTokenDialog({
type="button"
variant="secondary"
className="flex-1"
onClick={(prev) => setIsOpen(!prev)}
onClick={() => setIsOpen(false)}
>
Cancel
</Button>

View File

@ -134,6 +134,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
) : (
<div></div>
)}
{!tokens && isTokensLoading ? (
<div className="absolute inset-0 flex items-center justify-center bg-white/50">
<Loader className="h-8 w-8 animate-spin text-gray-500" />
@ -171,6 +172,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
))}
</ul>
)}
{newlyCreatedToken.token && showNewToken && (
<div className="border-primary mb-8 break-words rounded-sm border p-4">
<p className="text-muted-foreground mt-2 text-sm italic">
@ -187,6 +189,7 @@ export const ApiTokenForm = ({ className }: ApiTokenFormProps) => {
</Button>
</div>
)}
<h2 className="text-xl">Create a new token</h2>
<p className="text-muted-foreground mt-2 text-sm italic">
Enter a representative name for your new token.