Remove tach from aircraft

This commit is contained in:
april
2024-01-10 13:55:54 -06:00
parent 9e4520b218
commit 1958f6dc5f
8 changed files with 392 additions and 59 deletions

View File

@@ -31,11 +31,16 @@ export default function Me() {
current_psk: string;
new_psk: string;
confirm_new_psk: string;
}) =>
}) => {
console.log({
current_password: values.current_psk,
new_password: values.new_psk,
});
await client.put(`/users/me/password`, {
current_password: values.current_psk,
new_password: values.new_psk,
}),
});
},
});
const updatePskForm = useForm({
@@ -95,14 +100,16 @@ export default function Me() {
{...updatePskForm.getInputProps("current_psk")}
/>
<PasswordInput
mt="sm"
label="New Password"
{...updatePskForm.getInputProps("new_psk")}
/>
<PasswordInput
mt="sm"
label="Confirm New Password"
{...updatePskForm.getInputProps("confirm_new_psk")}
/>
<Group justify="flex-end" mt="md">
<Group justify="flex-end" mt="lg">
{updatePassword.isPending ? (
<Text>Updating...</Text>
) : updatePassword.isError ? (