hidden show password & delete history path
This commit is contained in:
@ -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 };
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user