Skip to content

Commit

Permalink
house keeping
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Dec 12, 2024
1 parent d8dbbb5 commit 5ec431e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ export interface AppProps<A extends Action = Action, S = unknown> {
maxTotalSeconds?: number
}

type RoutesProps = Pick<
type BaseRoutesProps = Pick<
AppProps,
"routes" | "header" | "footer" | "headerExcludePaths" | "footerExcludePaths"
> & { path: string }
>

const Routes: FC<RoutesProps> = ({
const Routes: FC<BaseRoutesProps & { path: string }> = ({
path,
routes,
header = <></>, // TODO: "header = <Header />"
Expand All @@ -50,7 +50,7 @@ const Routes: FC<RoutesProps> = ({
</>
)

const BrowserRoutes: FC<Omit<RoutesProps, "path">> = props => {
const BrowserRoutes: FC<BaseRoutesProps> = props => {
const { pathname } = useLocation()

return <Routes path={pathname} {...props} />
Expand Down

0 comments on commit 5ec431e

Please sign in to comment.