portal-dashboard/app/routes/_index.tsx

14 lines
254 B
TypeScript
Raw Permalink Normal View History

import Login from "./login"
2024-03-05 16:56:17 +00:00
export default function Index() {
const isLogged = false
if (isLogged) {
window.location.href = "/dashboard"
} else {
window.location.href = "/login"
}
return isLogged ? <div>Dashboard</div> : <Login />
2024-03-05 16:56:17 +00:00
}