portal-dashboard/app/routes/_index.tsx

13 lines
316 B
TypeScript
Raw Normal View History

import {Authenticated} from "@refinedev/core";
import {Navigate} from "@remix-run/react";
2024-03-05 16:56:17 +00:00
export default function Index() {
return (
2024-03-22 18:33:30 +00:00
<Authenticated key={"index"} loading={
<>Checking Login Status</>
}>
<Navigate to="/dashboard" replace/>
</Authenticated>
)
2024-03-05 16:56:17 +00:00
}