fixed login redirect

This commit is contained in:
knox
2023-10-29 16:37:18 +01:00
parent 5c031af3aa
commit b10032cceb
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ const Layout = ({handleLogout, serverStatus}) => {
end
to={to}
className={({isActive}) => {
[
return [
isActive ? "bg-orange" : "",
`hover:glow-orange accentuated bg-gray-light hover:bg-orange text-black font-bold py-2 px-4 w-full block${last ? '' : ' mb-1'}`,
].join(" ")
+1 -1
View File
@@ -34,7 +34,7 @@ const Login = ({handleLogin}) => {
const status = await user.status();
if (status?.username) {
await handleLogin(status);
history.push(location?.state?.from || '/');
navigate(location?.state?.from || '/');
}
})();
}, [])