chore: fix liniting issues
This commit is contained in:
parent
dd9f5f702a
commit
00c60b2cdd
5 changed files with 123 additions and 122 deletions
|
|
@ -90,14 +90,18 @@ export default function LoginPage() {
|
|||
return;
|
||||
}
|
||||
|
||||
setIsVerifying2FA(true);
|
||||
|
||||
const { data, error } = await authClient.twoFactor.verifyTotp({
|
||||
code: totpCode,
|
||||
trustDevice,
|
||||
});
|
||||
|
||||
fetchOptions: {
|
||||
onRequest: () => {
|
||||
setIsVerifying2FA(true);
|
||||
},
|
||||
onResponse: () => {
|
||||
setIsVerifying2FA(false);
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
if (error) {
|
||||
console.error(error);
|
||||
|
|
|
|||
|
|
@ -114,7 +114,6 @@ export const BackupCodesDialog = ({ open, onOpenChange }: BackupCodesDialogProps
|
|||
onChange={(e) => setPassword(e.target.value)}
|
||||
placeholder="Enter your password"
|
||||
required
|
||||
autoFocus
|
||||
/>
|
||||
</div>
|
||||
<Button type="submit" loading={isGenerating} className="w-full">
|
||||
|
|
|
|||
|
|
@ -79,7 +79,6 @@ export const TwoFactorDisableDialog = ({ open, onOpenChange, onSuccess }: TwoFac
|
|||
onChange={(e) => setPassword(e.target.value)}
|
||||
placeholder="Enter your password"
|
||||
required
|
||||
autoFocus
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -133,7 +133,6 @@ export const TwoFactorSetupDialog = ({ open, onOpenChange, onSuccess }: TwoFacto
|
|||
onChange={(e) => setPassword(e.target.value)}
|
||||
placeholder="Enter your password"
|
||||
required
|
||||
autoFocus
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
10
package.json
10
package.json
|
|
@ -2,7 +2,6 @@
|
|||
"name": "zerobyte",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"packageManager": "bun@1.3.5",
|
||||
"scripts": {
|
||||
"lint": "oxlint --type-aware",
|
||||
"build": "react-router build",
|
||||
|
|
@ -20,9 +19,6 @@
|
|||
"test:client": "dotenv -e .env.test -- bun test app/client --preload ./app/test/setup-client.ts",
|
||||
"test": "bun run test:server && bun run test:client"
|
||||
},
|
||||
"overrides": {
|
||||
"esbuild": "^0.27.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
|
|
@ -113,5 +109,9 @@
|
|||
"vite": "^7.2.6",
|
||||
"vite-bundle-analyzer": "^1.2.3",
|
||||
"vite-tsconfig-paths": "^6.0.3"
|
||||
}
|
||||
},
|
||||
"overrides": {
|
||||
"esbuild": "^0.27.2"
|
||||
},
|
||||
"packageManager": "bun@1.3.5"
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue