This commit is contained in:
unknown
2025-03-20 14:06:16 +07:00
3 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ const RequireAuth = () => {
return <ScreenLoader />; return <ScreenLoader />;
} }
return auth ? <Outlet /> : <Navigate to="/auth/login" state={{ from: location }} replace />; return auth ? <Outlet /> : <Navigate to="/auth/login" replace />;
}; };
export { RequireAuth }; export { RequireAuth };

View File

@ -121,7 +121,7 @@ const Login = () => {
})} })}
onKeyPress={handleKeyPress} onKeyPress={handleKeyPress}
/> />
<button className="btn btn-icon" onClick={togglePassword}> <button className="btn btn-icon" onClick={togglePassword} type="button">
<KeenIcon icon="eye" className={clsx('text-gray-500', { hidden: showPassword })} /> <KeenIcon icon="eye" className={clsx('text-gray-500', { hidden: showPassword })} />
<KeenIcon <KeenIcon
icon="eye-slash" icon="eye-slash"

View File

@ -8,7 +8,7 @@ const ManageCurrency = () => {
<ManageCurrencyContextProvider> <ManageCurrencyContextProvider>
<Container> <Container>
<h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Currency</h1> <h1 className="text-xl font-medium leading-none text-gray-900 mb-3">Manage Currency</h1>
<Breadcrumbs> <Breadcrumbs sx={{ mb: 2 }}>
<Link underline="none" color="inherit" href="/"> <Link underline="none" color="inherit" href="/">
<span className="text-sm hover:underline">Dashboard</span> <span className="text-sm hover:underline">Dashboard</span>
</Link> </Link>