Skip to content

Commit 626b68f

Browse files
committed
fixed bug w/ yeeting sidebar wrapper
1 parent 4918810 commit 626b68f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

app/routes/(authed)/config.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ import {
2525
Check
2626
} from "lucide-react";
2727
import { useState } from "react";
28+
import { AppSidebar } from "@/components/app-sidebar";
2829
import { AppNavbar } from "@/components/app-navbar";
2930
import { cn } from "@/lib/utils";
3031
import { ScrollArea } from "@/components/ui/scroll-area";
3132
import { Input } from "@/components/ui/input";
3233
import { Switch } from "@/components/ui/switch";
33-
import { SidebarProvider } from "@/components/sidebar-provider";
3434

3535
export const Route = createFileRoute("/(authed)/config")({
3636
component: ConfigComponent,
@@ -143,7 +143,7 @@ function ConfigComponent() {
143143
};
144144

145145
return (
146-
<SidebarProvider>
146+
<AppSidebar>
147147
<div className="min-h-screen bg-background">
148148
<AppNavbar />
149149
<main className="container mx-auto p-4 pt-20">
@@ -243,6 +243,6 @@ function ConfigComponent() {
243243
</div>
244244
</main>
245245
</div>
246-
</SidebarProvider>
246+
</AppSidebar>
247247
);
248248
}

app/routes/(authed)/feed.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createFileRoute } from "@tanstack/react-router";
22
import { IncidentFeed } from "@/components/incidents/incident-feed";
3+
import { AppSidebar } from "@/components/app-sidebar";
34
import { AppNavbar } from "@/components/app-navbar";
45
import { Incident } from "@/types/incident";
56
import { useState, useMemo } from "react";
@@ -9,7 +10,6 @@ import { Label } from "@/components/ui/label";
910
import { ScrollArea } from "@/components/ui/scroll-area";
1011
import { Separator } from "@/components/ui/separator";
1112
import { Check, Filter } from "lucide-react";
12-
import { SidebarProvider } from "@/components/sidebar-provider";
1313

1414
// Mock data - replace with real API calls later
1515
const mockIncidents: Incident[] = [
@@ -118,7 +118,7 @@ function FeedComponent() {
118118
};
119119

120120
return (
121-
<SidebarProvider>
121+
<AppSidebar>
122122
<div className="bg-background min-h-screen">
123123
<AppNavbar />
124124
<main className="mx-auto max-w-7xl p-4 pt-20">
@@ -242,6 +242,6 @@ function FeedComponent() {
242242
</div>
243243
</main>
244244
</div>
245-
</SidebarProvider>
245+
</AppSidebar>
246246
);
247247
}

0 commit comments

Comments
 (0)