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', variant: 'destructive',
duration: 5000, duration: 5000,
description: 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" type="button"
variant="secondary" variant="secondary"
className="flex-1" className="flex-1"
onClick={(prev) => setIsOpen(!prev)} onClick={() => setIsOpen(false)}
> >
Cancel Cancel
</Button> </Button>

View File

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

View File

@ -18,8 +18,6 @@ export const fieldRouter = router({
try { try {
const { documentId, fields } = input; const { documentId, fields } = input;
console.log('fields', fields);
return await setFieldsForDocument({ return await setFieldsForDocument({
documentId, documentId,
userId: ctx.user.id, userId: ctx.user.id,