Skip to content

Commit d2fe0e6

Browse files
committed
touch up
1 parent 4a498fa commit d2fe0e6

File tree

3 files changed

+4
-55
lines changed

3 files changed

+4
-55
lines changed

app/components/app-sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

app/routes/_index.browser.test.tsx

Lines changed: 0 additions & 49 deletions
This file was deleted.

app/routes/_index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useTranslation } from "react-i18next"
2-
import type { MetaFunction } from "react-router"
2+
import { type MetaFunction, redirect } from "react-router"
33
import { convertDateToUserTz } from "~/utils/dates"
44
import type { Route } from "./+types/_index"
55

@@ -8,10 +8,8 @@ export const meta: MetaFunction = () => {
88
}
99

1010
export 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

1715
export default function Index({ loaderData }: Route.ComponentProps) {

0 commit comments

Comments
 (0)