diff --git a/package.json b/package.json index f2d89f5..4a80d3c 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,9 @@ "@emotion/styled": "^11.11.0", "@mui/icons-material": "^5.15.6", "@mui/material": "^5.15.6", + "@octokit/core": "^6.1.6", + "@octokit/plugin-paginate-rest": "^11.6.0", + "@octokit/plugin-throttling": "^9.6.1", "@primer/octicons-react": "^19.15.5", "@vitejs/plugin-react": "^4.3.3", "axios": "^1.7.7", diff --git a/src/App.tsx b/src/App.tsx index b00eba8..4485005 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,24 +1,32 @@ +import { createBrowserRouter, RouterProvider, Outlet } from "react-router-dom"; +import { lazy, Suspense } from "react"; import Navbar from "./components/Navbar"; import Footer from "./components/Footer"; import ScrollProgressBar from "./components/ScrollProgressBar"; import { Toaster } from "react-hot-toast"; -import Router from "./Routes/Router"; import ThemeWrapper from "./context/ThemeContext"; -function App() { +const Home = lazy(() => import("./pages/Home/Home.tsx")); +const Tracker = lazy(() => import("./pages/Tracker/Tracker.tsx")); +const About = lazy(() => import("./pages/About/About")); +const Contact = lazy(() => import("./pages/Contact/Contact")); +const Contributors = lazy(() => import("./pages/Contributors/Contributors")); +const Signup = lazy(() => import("./pages/Signup/Signup.tsx")); +const Login = lazy(() => import("./pages/Login/Login.tsx")); +const ContributorProfile = lazy(() => import("./pages/ContributorProfile/ContributorProfile.tsx")); + +function RootLayout() { return (
- -
- + Loading…
}> + + -