Skip to content

Commit

Permalink
better pages structure
Browse files Browse the repository at this point in the history
  • Loading branch information
No0ne003 committed May 20, 2024
1 parent 4858727 commit 0834b81
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import GoBack from "./components/ui/GoBack";
import menus from "./pages/tree-view/data";

// pages
const Home = lazy(() => import("@/pages/Home"));
const NotFound = lazy(() => import("@/pages/404"));
const Home = lazy(() => import("@/pages/Home/Home"));
const NotFound = lazy(() => import("@/pages/404/404"));
const Accordion = lazy(() => import("@/pages/accordion/accordion"));
const RandomColor = lazy(() => import("@/pages/RandomColor"));
const StarRating = lazy(() => import("@/pages/StarRating"));
const ImageSlider = lazy(() => import("@/pages/ImageSlider"));
const LoadMoreData = lazy(() => import("@/pages/LoadMoreData"));
const RandomColor = lazy(() => import("@/pages/Random-Color/RandomColor"));
const StarRating = lazy(() => import("@/pages/StarRating/StarRating"));
const ImageSlider = lazy(() => import("@/pages/Image-Slider/ImageSlider"));
const LoadMoreData = lazy(() => import("@/pages/Load-More-Data/LoadMoreData"));
const TreeView = lazy(() => import("@/pages/tree-view/TreeView"));
const QRCodeGenerator = lazy(() => import("@/pages/QRCodeGenerator"));
const QRCodeGenerator = lazy(() => import("@/pages/Qr-Code-Generator/QRCodeGenerator"));
const LightDarkMode = lazy(
() => import("@/pages/light-dark-mode/Light-dark-mode"),
);
Expand All @@ -33,7 +33,7 @@ const GithubProfileFinder = lazy(
const SearchAutoComplete = lazy(
() => import("@/pages/SearchAutoComplete/SearchAutoComplete"),
);
const TicTacToe = lazy(() => import("@/pages/TicTacToe"));
const TicTacToe = lazy(() => import("@/pages/Tic-Tac-Toe/TicTacToe"));
const FeatureFlagGlobalState = lazy(
() => import("@/pages/Feature-flag/context/FeatureFlagsContext"),
);
Expand All @@ -47,7 +47,7 @@ const UseOnClickOutsideTest = lazy(
const UseWindowResizeTest = lazy(
() => import("./pages/CustomHooks/use-window-resize/test"),
);
const ScrollToSection = lazy(() => import("./pages/ScrollToSection"));
const ScrollToSection = lazy(() => import("./pages/Scroll-to-section/ScrollToSection"));
const WeatherApp = lazy(() => import("@/pages/Weather-app/index"));

function App() {
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions src/pages/Feature-flag/FeatureFlags.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import menus from "../tree-view/data";
const LazyLightDarkMode = lazy(
() => import("../light-dark-mode/Light-dark-mode"),
);
const LazyTicTacToe = lazy(() => import("../TicTacToe"));
const LazyRandomColor = lazy(() => import("../RandomColor"));
const LazyTicTacToe = lazy(() => import("../Tic-Tac-Toe/TicTacToe"));
const LazyRandomColor = lazy(() => import("../Random-Color/RandomColor"));
const LazyAccordion = lazy(() => import("../accordion/accordion"));
const LazyTreeView = lazy(() => import("../tree-view/TreeView"));
const LazyTabTest = lazy(() => import("../tree-view/custom-tabs/Tab-test"));
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const TicTacToe = () => {
<span className="font-bold font-mono text-primary">{winner}</span>
</div>
) : isDraw ? (
<div className="text-5xl">It's a draw!</div>
<div className="text-5xl">It&apos;s a draw!</div>
) : null}{" "}
</div>
<div className="shadow-2xl">
Expand Down

0 comments on commit 0834b81

Please sign in to comment.