You've already forked factorio-server-manager
mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2026-06-19 20:06:55 +02:00
fixed login redirect
This commit is contained in:
@@ -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(" ")
|
||||
|
||||
@@ -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 || '/');
|
||||
}
|
||||
})();
|
||||
}, [])
|
||||
|
||||
Reference in New Issue
Block a user