Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

refactor(auth): keep the countdown hook beside the login page that uses it

spacesdrive398ac3a7317b
diff --git a/frontend/src/pages/Login.tsx b/frontend/src/pages/Login.tsx
index 3d7dc5b..ca65150 100644
--- a/frontend/src/pages/Login.tsx
+++ b/frontend/src/pages/Login.tsx
@@ -13,7 +13,7 @@ import { GOOGLE_CLIENT_ID } from '@/lib/googleIdentity';
import { emailErrorNotice, isExistingAccount, passwordErrorMessage } from '@/lib/authErrors';
import { PASSWORD_MIN_LENGTH, newPasswordProblem } from '@/lib/passwords';
import { FieldRow } from '@/components/DetailPanel';
-import { useCountdown } from '@/hooks/use-countdown';
+import { useCountdown } from './useCountdown';
import type { AuthErrorLike } from '@/lib/authErrors';
import LoginBrandPanel from './LoginBrandPanel';
import LoginForm from './LoginForm';
diff --git a/frontend/src/hooks/use-countdown.ts b/frontend/src/pages/useCountdown.ts
similarity index 100%
rename from frontend/src/hooks/use-countdown.ts
rename to frontend/src/pages/useCountdown.ts