From 99c79c13d67661c2034076e3b8b9bcd474d6e690 Mon Sep 17 00:00:00 2001 From: Metin Date: Thu, 7 Nov 2024 15:04:24 +0400 Subject: [PATCH] adjusted routes for HashRouter --- src/components/Breadcrumb.jsx | 2 +- src/components/Dashboard.jsx | 6 +++--- src/components/DisplayAlbum.jsx | 2 +- src/components/Footer.jsx | 2 +- src/components/Header.jsx | 4 ++-- src/components/Modal.jsx | 2 +- src/components/ProtectedRoutes.jsx | 2 +- src/database/music/refreshMP3.js | 1 - src/main.jsx | 26 +++++++++----------------- src/pages/Account.jsx | 4 ++-- src/pages/EditAccount.jsx | 4 ++-- src/pages/ErrorPage.jsx | 2 +- src/pages/ForgotPassword.jsx | 2 +- src/pages/Login.jsx | 10 +++------- src/pages/Signin.jsx | 14 +++++++------- 15 files changed, 35 insertions(+), 48 deletions(-) diff --git a/src/components/Breadcrumb.jsx b/src/components/Breadcrumb.jsx index 3c203ec..cd5ead1 100644 --- a/src/components/Breadcrumb.jsx +++ b/src/components/Breadcrumb.jsx @@ -22,7 +22,7 @@ const DynamicBreadcrumb = () => { Home diff --git a/src/components/Dashboard.jsx b/src/components/Dashboard.jsx index 9e68990..c86038f 100644 --- a/src/components/Dashboard.jsx +++ b/src/components/Dashboard.jsx @@ -31,12 +31,12 @@ const Dashboard = () => { { name: "Main Menu", description: "Convert Youtube links", - linkTo: "/YouTube-Converter/", + linkTo: "/", }, { name: "Check out MP3 list", description: "Listen to your converted music", - linkTo: "/YouTube-Converter/music-list", + linkTo: "/music-list", }, ]; @@ -44,7 +44,7 @@ const Dashboard = () => { { name: "Report a Bug", description: "Help us improve by reporting any issues.", - linkTo: "/YouTube-Converter/bug-report", + linkTo: "/bug-report", }, ]; diff --git a/src/components/DisplayAlbum.jsx b/src/components/DisplayAlbum.jsx index 834acc4..1a2cde1 100644 --- a/src/components/DisplayAlbum.jsx +++ b/src/components/DisplayAlbum.jsx @@ -102,7 +102,7 @@ const DisplayAlbum = ({ refreshMP3Link, loadingRefresh, setCurrentMP3, mp3List,
  • setCurrentMP3(mp3)} - className=" underline sm:no-underline cursor-pointer rounded"> + className="hover underline sm:no-underline cursor-pointer rounded"> {mp3.title || `Song ${mp3.id}`}
  • diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index a228e40..7d82b50 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -47,7 +47,7 @@ const Footer = () => {
  • - + Credits
  • diff --git a/src/components/Header.jsx b/src/components/Header.jsx index 4b2200c..b3cf9b3 100644 --- a/src/components/Header.jsx +++ b/src/components/Header.jsx @@ -19,7 +19,7 @@ const Header = () => { ) : isLoggedIn ? ( <> - +