Minor tweaks

This commit is contained in:
2022-07-04 13:01:41 +02:00
parent 8823418daa
commit 0c2009b659
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ export const MainContent = () => {
login: Login,
admin: AdminPanel,
apiKeys: ApiKeys,
}[route.id] || (() => <>Error</>)
}[route.id] || (() => <>Still nothing here</>)
return (
<div class={`main-content route-${changeCase('camel', 'dash', route.id)}`}>
+3
View File
@@ -43,6 +43,9 @@ const App = () => {
if (id !== 'login' && user !== 'admin') {
location.href = '/login'
}
if (id === 'login' && user === 'admin') {
location.href = '/'
}
})
const [toasts, setToasts] = useState([])