Skip to content

Commit

Permalink
Merge pull request #23 from nilportugues/patch-1
Browse files Browse the repository at this point in the history
Use FlexibleSwitch in README.md example
  • Loading branch information
grrowl authored Jan 29, 2025
2 parents 5f160cb + 3150363 commit 834b928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const FlexibleSwitch = ({ children }) => (
const AppRoutes = ({ user }) => (
<Router>
<GlobalNavigation user={user} />
<Switch>
<FlexibleSwitch>
<Route path="/about">
<About />
</Route>
Expand All @@ -115,7 +115,7 @@ const AppRoutes = ({ user }) => (
<Route path="/">
<Home />
</Route>
</Switch>
</FlexibleSwitch>
</Router>
);
```
Expand Down

0 comments on commit 834b928

Please sign in to comment.