fix: resolve some type errors
This commit is contained in:
parent
021ecabd3c
commit
7f5e0fe42d
2 changed files with 3 additions and 7 deletions
|
|
@ -22,12 +22,8 @@ export default function AuthKeyRow({ authKey, user, url }: Props) {
|
||||||
<Attribute name="Reusable" value={authKey.reusable ? 'Yes' : 'No'} />
|
<Attribute name="Reusable" value={authKey.reusable ? 'Yes' : 'No'} />
|
||||||
<Attribute name="Ephemeral" value={authKey.ephemeral ? 'Yes' : 'No'} />
|
<Attribute name="Ephemeral" value={authKey.ephemeral ? 'Yes' : 'No'} />
|
||||||
<Attribute name="Used" value={authKey.used ? 'Yes' : 'No'} />
|
<Attribute name="Used" value={authKey.used ? 'Yes' : 'No'} />
|
||||||
<Attribute suppressHydrationWarning name="Created" value={createdAt} />
|
<Attribute name="Created" value={createdAt} />
|
||||||
<Attribute
|
<Attribute name="Expiration" value={expiration} />
|
||||||
suppressHydrationWarning
|
|
||||||
name="Expiration"
|
|
||||||
value={expiration}
|
|
||||||
/>
|
|
||||||
<p className="mb-1 mt-4">
|
<p className="mb-1 mt-4">
|
||||||
To use this key, run the following command on your device:
|
To use this key, run the following command on your device:
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ export async function userAction({
|
||||||
case 'rename_user':
|
case 'rename_user':
|
||||||
return renameUser(formData, apiKey, context);
|
return renameUser(formData, apiKey, context);
|
||||||
case 'reassign_user':
|
case 'reassign_user':
|
||||||
return reassignUser(formData, apiKey, context, session);
|
return reassignUser(formData, apiKey, context);
|
||||||
default:
|
default:
|
||||||
throw data400('Invalid `action_id` provided.');
|
throw data400('Invalid `action_id` provided.');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue