From f762136f14b01c090df57ca0711f7f058f357519 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Wed, 4 Jun 2025 09:14:44 -0500 Subject: [PATCH] Remove Spinner and don't lazy-load components --- src/App.tsx | 3 +-- src/AppRouter.tsx | 6 ++---- src/components/ui/spinner.tsx | 12 ------------ 3 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 src/components/ui/spinner.tsx diff --git a/src/App.tsx b/src/App.tsx index b069d40..7e18712 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -5,7 +5,6 @@ import { Suspense } from 'react'; import NostrProvider from '@/components/NostrProvider' import { ThemeProvider } from "@/components/ThemeProvider"; import { Toaster } from "@/components/ui/toaster"; -import { Spinner } from '@/components/ui/spinner'; import { Toaster as Sonner } from "@/components/ui/sonner"; import { TooltipProvider } from "@/components/ui/tooltip"; import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; @@ -33,7 +32,7 @@ export function App() { - }> + diff --git a/src/AppRouter.tsx b/src/AppRouter.tsx index 2e5f97d..b8875c6 100644 --- a/src/AppRouter.tsx +++ b/src/AppRouter.tsx @@ -1,10 +1,8 @@ -import { lazy } from "react"; import { BrowserRouter, Route, Routes } from "react-router-dom"; import { ScrollToTop } from "./components/ScrollToTop"; -// Lazy load page components -const Index = lazy(() => import("./pages/Index")); -const NotFound = lazy(() => import("./pages/NotFound")); +import Index from "./pages/Index"; +import NotFound from "./pages/NotFound"; export function AppRouter() { return ( diff --git a/src/components/ui/spinner.tsx b/src/components/ui/spinner.tsx deleted file mode 100644 index 93cd92a..0000000 --- a/src/components/ui/spinner.tsx +++ /dev/null @@ -1,12 +0,0 @@ -import { cn } from '@/lib/utils'; -import { Loader2 } from 'lucide-react'; - -const Spinner = ({ className }: { className?: string }) => { - return ( - - ); -}; - -export { Spinner }; \ No newline at end of file