mirror of
https://github.com/tale/headplane.git
synced 2026-08-25 20:06:48 +00:00
fix: resolve some type errors
This commit is contained in:
@@ -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.');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user