diff --git a/apps/web/app/(auth)/login/page.tsx b/apps/web/app/(auth)/login/page.tsx index 4fb9f38..9d9dfde 100644 --- a/apps/web/app/(auth)/login/page.tsx +++ b/apps/web/app/(auth)/login/page.tsx @@ -9,18 +9,15 @@ import auth3Light from '@/public/images/auth3-light.png'; import { Eye, EyeOff, Loader2 } from 'lucide-react'; import Image from 'next/image'; import Link from 'next/link'; -import { useEffect, useRef, useState } from 'react'; -import { PiUserDuotone } from 'react-icons/pi'; +import { useRef, useState } from 'react'; import { toast } from 'sonner'; export default function Login() { const { loginUser } = useAuth(); const [getResponse, setGetResponse] = useState(false); - const [mounted, setMounted] = useState(false); const usernameRef = useRef(null); const passwordRef = useRef(null); const [passwordType, setPasswordType] = useState('password'); - const togglePasswordType = () => { if (passwordType === 'text') { setPasswordType('password'); @@ -58,35 +55,6 @@ export default function Login() { } setGetResponse(false); }; - - useEffect(() => { - if (typeof window !== 'undefined') { - setMounted(true); - } - }, []); - - if (mounted) { - toast( -
-

- Demo Login Credentials -

- -

- Username: admin -

-

- Password: admin -

-

Note: The demo does not make any changes to the database.

-
, - { - position: 'bottom-center', - duration: Infinity, - } - ); - } - return (
background image @@ -115,17 +83,6 @@ export default function Login() {
Hey, Hello 👋
Enter your DASH credentials here...
- {/* Demo Credentials Alert*/} - {/*
-

- Demo Credentials -

-

- Username: admin Password: admin -

-

NB: Performing post, put, delete methods in the demo will not reflect in the database.

-
*/} -