From e565f450b89fa870872c6377ad7fb6ff18e84b89 Mon Sep 17 00:00:00 2001 From: VividTruthKeeper Date: Mon, 19 Sep 2022 17:28:11 +0500 Subject: [PATCH] app theme changed --- src/App.tsx | 5 +- src/assets/styles/_aside.scss | 3 +- src/assets/styles/_dashboard.scss | 1 + src/assets/styles/_general.scss | 57 ++++++- src/assets/styles/_login.scss | 15 +- src/assets/styles/_main.scss | 1 + src/assets/styles/_nav.scss | 15 +- src/assets/styles/_posts.scss | 34 +++-- .../styles/{_category.scss => _source.scss} | 51 ++++++- src/assets/styles/_variables.scss | 15 +- src/assets/styles/style.scss | 2 +- src/components/Aside.tsx | 46 ++++-- src/components/Nav.tsx | 14 +- src/helpers/apiRequests.ts | 6 +- src/pages/Category.tsx | 92 ------------ src/pages/Dashboard.tsx | 6 +- src/pages/Posts.tsx | 12 +- src/pages/Source.tsx | 139 ++++++++++++++++++ 18 files changed, 350 insertions(+), 164 deletions(-) rename src/assets/styles/{_category.scss => _source.scss} (69%) delete mode 100644 src/pages/Category.tsx create mode 100644 src/pages/Source.tsx diff --git a/src/App.tsx b/src/App.tsx index 6974abe..3f3216a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -17,7 +17,7 @@ import Dashboard from "./pages/Dashboard"; import Posts from "./pages/Posts"; import Details from "./pages/Details"; import Post from "./pages/Post"; -import Category from "./pages/Category"; +import Source from "./pages/Source"; const App = () => { const navigate = useNavigate(); @@ -52,6 +52,7 @@ const App = () => { useEffect(() => { if (!user.username) { + // localStorage.removeItem("lastLocation"); navigate("/login"); } else { navigate(localStorage.getItem("lastLocation") || "/dashboard"); @@ -66,7 +67,7 @@ const App = () => { } /> } />} /> } />} /> - } />} /> + } />} /> } />} /> {