Trigger library search on artist/author click (#939)

* add search func

* Fix lint issues and clean up

---------

Co-authored-by: schroda <50052685+schroda@users.noreply.github.com>
This commit is contained in:
Well404
2025-05-18 01:04:16 +08:00
committed by GitHub
parent 05dc05a043
commit caad353bfa
8 changed files with 57 additions and 8 deletions

View File

@@ -129,7 +129,7 @@ const MainApp = () => {
<ErrorBoundary>
<Routes>
{/* General Routes */}
<Route path={AppRoutes.root.match} element={<Navigate to={AppRoutes.library.path} replace />} />
<Route path={AppRoutes.root.match} element={<Navigate to={AppRoutes.library.path()} replace />} />
<Route path={AppRoutes.matchAll.match} element={<Navigate to={AppRoutes.root.path} replace />} />
{isMobileWidth && <Route path={AppRoutes.more.match} element={<More />} />}
<Route path={AppRoutes.about.match} element={<About />} />