Skip to content

Commit

Permalink
routes
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Aug 14, 2024
1 parent ccc248d commit e6c75fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useCountdown, useEventListener, useLocation } from "../hooks"
export interface AppProps<A extends Action = Action, S = unknown> {
theme: ThemeProviderProps["theme"]
store: ProviderProps<A, S>["store"]
children: ReactNode
routes: ReactNode
header?: ReactNode
footer?: ReactNode
headerExcludePaths?: string[]
Expand All @@ -28,7 +28,7 @@ export interface AppProps<A extends Action = Action, S = unknown> {
const App = <A extends Action = Action, S = unknown>({
theme,
store,
children,
routes,
header, // TODO: "header = <Header />"
footer, // TODO: "footer = <Footer />"
headerExcludePaths = [],
Expand Down Expand Up @@ -97,7 +97,7 @@ const App = <A extends Action = Action, S = unknown>({
/>
<BrowserRouter>
{!headerExcludePaths.includes(pathname) && header}
<Routes>{children}</Routes>
<Routes>{routes}</Routes>
{!footerExcludePaths.includes(pathname) && footer}
</BrowserRouter>
</Provider>
Expand Down

0 comments on commit e6c75fc

Please sign in to comment.