Skip to content

Commit

Permalink
optimize file routing
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Nov 28, 2024
1 parent 18237ad commit 98ed822
Showing 1 changed file with 48 additions and 18 deletions.
66 changes: 48 additions & 18 deletions src/components/Router/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,16 @@ export const Router = () => {
index={true}
lazy={() => import('../shared/Files/Files/index.jsx')}
/>
<Route
path=":fileId/Vorschau"
lazy={() => import('../shared/Files/Preview/index.jsx')}
/>
<Route path=":fileId">
<Route
path="*"
lazy={() => import('../shared/Files/Preview/index.jsx')}
/>
<Route
path="Vorschau"
lazy={() => import('../shared/Files/Preview/index.jsx')}
/>
</Route>
</Route>
</Route>
<Route path="Taxa">
Expand Down Expand Up @@ -471,10 +477,20 @@ export const Router = () => {
index={true}
lazy={() => import('../shared/Files/Files/index.jsx')}
/>
<Route
path=":fileId/Vorschau"
lazy={() => import('../shared/Files/Preview/index.jsx')}
/>
<Route path=":fileId">
<Route
path="*"
lazy={() =>
import('../shared/Files/Preview/index.jsx')
}
/>
<Route
path="Vorschau"
lazy={() =>
import('../shared/Files/Preview/index.jsx')
}
/>
</Route>
</Route>
<Route
path="Historien"
Expand Down Expand Up @@ -518,12 +534,20 @@ export const Router = () => {
index={true}
lazy={() => import('../shared/Files/Files/index.jsx')}
/>
<Route
path=":fileId/Vorschau"
lazy={() =>
import('../shared/Files/Preview/index.jsx')
}
/>
<Route path=":fileId">
<Route
path="*"
lazy={() =>
import('../shared/Files/Preview/index.jsx')
}
/>
<Route
path="Vorschau"
lazy={() =>
import('../shared/Files/Preview/index.jsx')
}
/>
</Route>
</Route>
</Route>
</Route>
Expand Down Expand Up @@ -632,10 +656,16 @@ export const Router = () => {
index={true}
lazy={() => import('../shared/Files/Files/index.jsx')}
/>
<Route
path=":fileId/Vorschau"
lazy={() => import('../shared/Files/Preview/index.jsx')}
/>
<Route path=":fileId">
<Route
path="*"
lazy={() => import('../shared/Files/Preview/index.jsx')}
/>
<Route
path="Vorschau"
lazy={() => import('../shared/Files/Preview/index.jsx')}
/>
</Route>
</Route>
</Route>
<Route path=":tpopkontrId/Zaehlungen">
Expand Down

0 comments on commit 98ed822

Please sign in to comment.