File tree Expand file tree Collapse file tree 3 files changed +4
-55
lines changed
Expand file tree Collapse file tree 3 files changed +4
-55
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
156156 < SidebarMenu >
157157 < SidebarMenuItem >
158158 < SidebarMenuButton asChild className = "data-[slot=sidebar-menu-button]:!p-1.5" >
159- < Link to = { href ( "/dashboard " ) } >
159+ < Link to = { href ( "/" ) } >
160160 < IconInnerShadowTop className = "!size-5" />
161161 < span className = "font-semibold text-base" > Acme Inc.</ span >
162162 </ Link >
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import { useTranslation } from "react-i18next"
2- import type { MetaFunction } from "react-router"
2+ import { type MetaFunction , redirect } from "react-router"
33import { convertDateToUserTz } from "~/utils/dates"
44import type { Route } from "./+types/_index"
55
@@ -8,10 +8,8 @@ export const meta: MetaFunction = () => {
88}
99
1010export const loader = ( { request } : Route . LoaderArgs ) => {
11- const timezoneDate = convertDateToUserTz ( new Date ( ) , request )
12- return {
13- timezoneDate : timezoneDate . toTimeString ( ) ,
14- }
11+ const _timezoneDate = convertDateToUserTz ( new Date ( ) , request )
12+ throw redirect ( "/login" )
1513}
1614
1715export default function Index ( { loaderData } : Route . ComponentProps ) {
You can’t perform that action at this time.
0 commit comments