chore: remove all .jsx files from Frontend src

Vite resolves .tsx before .jsx (per extensions order in vite.config.ts),
so .jsx files were never loaded at runtime. Switching to TSX-only source.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-07-03 21:40:59 -04:00
co-authored by Claude Sonnet 4.6
parent 00fd213291
commit e60110226b
167 changed files with 15 additions and 33539 deletions
-17
View File
@@ -1,17 +0,0 @@
import AppLayout from "@/components/layout/app-layout";
import LoadingScreen from "@/components/ui/LoadingScreen";
import { useAuth } from "@/hooks/use-auth";
import { Suspense } from "react";
import { Redirect, Route } from "wouter";
export function ProtectedRoute({ path, component: Component, adminOnly = false, }) {
const { user, isLoading } = useAuth();
return (<Route path={path}>
{isLoading ? (<AppLayout>
<LoadingScreen />
</AppLayout>) : !user ? (<Redirect to="/auth"/>) : adminOnly && user.username !== "admin" ? (<Redirect to="/insurance-status"/>) : (<AppLayout>
<Suspense fallback={<LoadingScreen />}>
<Component />
</Suspense>
</AppLayout>)}
</Route>);
}