fix: resolve type errors across the codebase

This commit is contained in:
Aarnav Tale 2024-11-04 18:13:10 -05:00
parent 10bb4eba97
commit 12754bd0aa
No known key found for this signature in database
6 changed files with 34 additions and 22 deletions

View file

@ -94,7 +94,7 @@ export default function AddPreAuthKey(data: Props) {
onChange={() => { setReusable(!reusable) }}
/>
</div>
<input type="hidden" name="reusable" value={reusable} />
<input type="hidden" name="reusable" value={reusable.toString()} />
<div className="flex justify-between items-center mt-6">
<div>
<Dialog.Text className="font-semibold">
@ -121,7 +121,7 @@ export default function AddPreAuthKey(data: Props) {
}}
/>
</div>
<input type="hidden" name="ephemeral" value={ephemeral} />
<input type="hidden" name="ephemeral" value={ephemeral.toString()} />
<div className="mt-6 flex justify-end gap-2 mt-6">
<Dialog.Action
variant="cancel"

View file

@ -39,7 +39,7 @@ export default function AuthKeyRow({ authKey, server }: Props) {
<Button
variant="light"
className="my-4"
onClick={async () => {
onPress={async () => {
await navigator.clipboard.writeText(
`tailscale up --login-server ${server} --authkey ${authKey.key}`
)