Skip to content

Commit de27b7b

Browse files
committed
chore: lint
1 parent 253b4ff commit de27b7b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/routes/__root.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createRootRoute, Outlet, redirect, useRouterState } from '@tanstack/react-router';
1+
import { createRootRoute, Outlet, redirect } from '@tanstack/react-router';
22
import { TanStackRouterDevtools } from '@tanstack/router-devtools';
33
import '../index.css';
44
import { ErrorBoundary } from '../components/ErrorBoundary';
@@ -44,8 +44,6 @@ export const Route = createRootRoute({
4444
function Root() {
4545
const { experiments, font, language } = useSettings();
4646
const dir = i18n.dir(language);
47-
const router = useRouterState();
48-
const pathname = router.location.pathname;
4947
const { data: unreadCount } = useUnreadCount();
5048

5149
const { updateServiceWorker } = useRegisterSW({
@@ -94,11 +92,11 @@ function Root() {
9492
<div className="flex mx-auto lg:flex-row lg:w-fit lg:gap-2">
9593
<Navbar />
9694
<div className="flex justify-center mx-auto">
97-
<div className={cn('flex flex-col sm:border-x w-screen sm:w-[550px]')}>
98-
<ErrorBoundary>
95+
<div className={cn('flex flex-col sm:border-x w-screen sm:w-[550px]')}>
96+
<ErrorBoundary>
9997
<Outlet key="app" />
100-
</ErrorBoundary>
101-
</div>
98+
</ErrorBoundary>
99+
</div>
102100
</div>
103101
</div>
104102
{experiments.devMode && (

0 commit comments

Comments
 (0)