mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-05 12:11:51 +00:00
disable single attribute per line
This commit is contained in:
parent
92ed8e20c9
commit
8b141d652c
154 changed files with 390 additions and 1800 deletions
|
|
@ -45,22 +45,14 @@ export const AppOutlet = () => {
|
|||
|
||||
if (authState === AuthState.LOADING) {
|
||||
return (
|
||||
<Center
|
||||
h="100vh"
|
||||
w="100%"
|
||||
>
|
||||
<Center h="100vh" w="100%">
|
||||
<Spinner container />
|
||||
</Center>
|
||||
);
|
||||
}
|
||||
|
||||
if (isActionsRequired || authState === AuthState.INVALID) {
|
||||
return (
|
||||
<Navigate
|
||||
replace
|
||||
to={AppRoute.ACTION_REQUIRED}
|
||||
/>
|
||||
);
|
||||
return <Navigate replace to={AppRoute.ACTION_REQUIRED} />;
|
||||
}
|
||||
|
||||
return <Outlet />;
|
||||
|
|
|
|||
|
|
@ -79,10 +79,7 @@ export const AppRouter = () => {
|
|||
>
|
||||
<Routes>
|
||||
<Route element={<TitlebarOutlet />}>
|
||||
<Route
|
||||
element={<AppOutlet />}
|
||||
errorElement={<RouteErrorBoundary />}
|
||||
>
|
||||
<Route element={<AppOutlet />} errorElement={<RouteErrorBoundary />}>
|
||||
<Route element={<DefaultLayout />}>
|
||||
<Route
|
||||
element={<HomeRoute />}
|
||||
|
|
@ -140,10 +137,7 @@ export const AppRouter = () => {
|
|||
path={AppRoute.LIBRARY_ARTISTS}
|
||||
/>
|
||||
<Route path={AppRoute.LIBRARY_ARTISTS_DETAIL}>
|
||||
<Route
|
||||
element={<AlbumArtistDetailRoute />}
|
||||
index
|
||||
/>
|
||||
<Route element={<AlbumArtistDetailRoute />} index />
|
||||
<Route
|
||||
element={<AlbumListRoute />}
|
||||
path={AppRoute.LIBRARY_ARTISTS_DETAIL_DISCOGRAPHY}
|
||||
|
|
@ -181,15 +175,9 @@ export const AppRouter = () => {
|
|||
errorElement={<RouteErrorBoundary />}
|
||||
path={AppRoute.LIBRARY_ALBUM_ARTISTS}
|
||||
>
|
||||
<Route
|
||||
element={<AlbumArtistListRoute />}
|
||||
index
|
||||
/>
|
||||
<Route element={<AlbumArtistListRoute />} index />
|
||||
<Route path={AppRoute.LIBRARY_ALBUM_ARTISTS_DETAIL}>
|
||||
<Route
|
||||
element={<AlbumArtistDetailRoute />}
|
||||
index
|
||||
/>
|
||||
<Route element={<AlbumArtistDetailRoute />} index />
|
||||
<Route
|
||||
element={<AlbumListRoute />}
|
||||
path={AppRoute.LIBRARY_ALBUM_ARTISTS_DETAIL_DISCOGRAPHY}
|
||||
|
|
@ -204,10 +192,7 @@ export const AppRouter = () => {
|
|||
/>
|
||||
</Route>
|
||||
</Route>
|
||||
<Route
|
||||
element={<InvalidRoute />}
|
||||
path="*"
|
||||
/>
|
||||
<Route element={<InvalidRoute />} path="*" />
|
||||
</Route>
|
||||
</Route>
|
||||
</Route>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue