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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setIsVerifying2FA(true);
|
|
||||||
|
|
||||||
const { data, error } = await authClient.twoFactor.verifyTotp({
|
const { data, error } = await authClient.twoFactor.verifyTotp({
|
||||||
code: totpCode,
|
code: totpCode,
|
||||||
trustDevice,
|
trustDevice,
|
||||||
});
|
fetchOptions: {
|
||||||
|
onRequest: () => {
|
||||||
|
setIsVerifying2FA(true);
|
||||||
|
},
|
||||||
|
onResponse: () => {
|
||||||
setIsVerifying2FA(false);
|
setIsVerifying2FA(false);
|
||||||
|
},
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
|
|
||||||
|
|
@ -114,7 +114,6 @@ export const BackupCodesDialog = ({ open, onOpenChange }: BackupCodesDialogProps
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
placeholder="Enter your password"
|
placeholder="Enter your password"
|
||||||
required
|
required
|
||||||
autoFocus
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Button type="submit" loading={isGenerating} className="w-full">
|
<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)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
placeholder="Enter your password"
|
placeholder="Enter your password"
|
||||||
required
|
required
|
||||||
autoFocus
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -133,7 +133,6 @@ export const TwoFactorSetupDialog = ({ open, onOpenChange, onSuccess }: TwoFacto
|
||||||
onChange={(e) => setPassword(e.target.value)}
|
onChange={(e) => setPassword(e.target.value)}
|
||||||
placeholder="Enter your password"
|
placeholder="Enter your password"
|
||||||
required
|
required
|
||||||
autoFocus
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
10
package.json
10
package.json
|
|
@ -2,7 +2,6 @@
|
||||||
"name": "zerobyte",
|
"name": "zerobyte",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"packageManager": "bun@1.3.5",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"lint": "oxlint --type-aware",
|
"lint": "oxlint --type-aware",
|
||||||
"build": "react-router build",
|
"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:client": "dotenv -e .env.test -- bun test app/client --preload ./app/test/setup-client.ts",
|
||||||
"test": "bun run test:server && bun run test:client"
|
"test": "bun run test:server && bun run test:client"
|
||||||
},
|
},
|
||||||
"overrides": {
|
|
||||||
"esbuild": "^0.27.2"
|
|
||||||
},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@dnd-kit/core": "^6.3.1",
|
"@dnd-kit/core": "^6.3.1",
|
||||||
"@dnd-kit/sortable": "^10.0.0",
|
"@dnd-kit/sortable": "^10.0.0",
|
||||||
|
|
@ -113,5 +109,9 @@
|
||||||
"vite": "^7.2.6",
|
"vite": "^7.2.6",
|
||||||
"vite-bundle-analyzer": "^1.2.3",
|
"vite-bundle-analyzer": "^1.2.3",
|
||||||
"vite-tsconfig-paths": "^6.0.3"
|
"vite-tsconfig-paths": "^6.0.3"
|
||||||
}
|
},
|
||||||
|
"overrides": {
|
||||||
|
"esbuild": "^0.27.2"
|
||||||
|
},
|
||||||
|
"packageManager": "bun@1.3.5"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue