portal-dashboard/app/routes/dashboard.tsx

15 lines
272 B
TypeScript

import { DashboardLayout } from "~/components/dashboard-layout"
export default function Dashboard() {
const isLogged = true
if (!isLogged) {
window.location.href = "/login"
}
return (
<DashboardLayout>
<div>Hello</div>
</DashboardLayout>
)
}