diff --git a/app/layouts/admin/navbar.tsx b/app/layouts/admin/navbar.tsx index 740bcb4..6944b92 100644 --- a/app/layouts/admin/navbar.tsx +++ b/app/layouts/admin/navbar.tsx @@ -1,8 +1,9 @@ -import { Button, Popover, PopoverButton, PopoverPanel } from '@headlessui/react' +import { Popover, PopoverButton, PopoverPanel } from '@headlessui/react' import { Link, useFetcher, useRouteLoaderData } from 'react-router' import { ChevronIcon } from '~/components/icons/chevron' import { ProfileIcon } from '~/components/icons/profile' +import { Button } from '~/components/ui/button' import { APP } from '~/configs/meta' import type { loader } from '~/routes/_admin.lg-admin' @@ -52,8 +53,10 @@ export const Navbar = () => { className="grid" > diff --git a/app/pages/staff-login/index.tsx b/app/pages/staff-login/index.tsx index 0bf0ba9..9a02ed8 100644 --- a/app/pages/staff-login/index.tsx +++ b/app/pages/staff-login/index.tsx @@ -23,14 +23,12 @@ export const AdminLoginPage = () => { resolver: zodResolver(loginSchema), }) const [error, setError] = useState() - const [disabled, setDisabled] = useState(false) const { handleSubmit } = formMethods useEffect(() => { if (!fetcher.data?.success) { setError(fetcher.data?.message) - setDisabled(false) return } // eslint-disable-next-line react-hooks/exhaustive-deps @@ -81,18 +79,21 @@ export const AdminLoginPage = () => { {/* Lupa Kata Sandi */}
Lupa Kata Sandi? - Reset Kata Sandi - +