Skip to content

Commit

Permalink
docs(react): remove IonContent from tabs example (#2958)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdebeasi authored and sean-perkins committed Jun 15, 2023
1 parent ba7a19f commit a27bbc4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/react/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -420,15 +420,15 @@ Let's start by taking a look at our `Tabs` component:

```tsx
import { Redirect, Route } from 'react-router-dom';
import { IonContent, IonIcon, IonLabel, IonRouterOutlet, IonTabBar, IonTabButton, IonTabs } from '@ionic/react';
import { IonPage, IonIcon, IonLabel, IonRouterOutlet, IonTabBar, IonTabButton, IonTabs } from '@ionic/react';
import { IonReactRouter } from '@ionic/react-router';
import { ellipse, square, triangle } from 'ionicons/icons';
import Tab1 from './pages/Tab1';
import Tab2 from './pages/Tab2';
import Tab3 from './pages/Tab3';

const Tabs: React.FC = () => (
<IonContent>
<IonPage>
<IonTabs>
<IonRouterOutlet>
<Redirect exact path="/tabs" to="/tabs/tab1" />
Expand Down Expand Up @@ -460,7 +460,7 @@ const Tabs: React.FC = () => (
</IonTabButton>
</IonTabBar>
</IonTabs>
</IonContent>
</IonPage>
);

export default Tabs;
Expand Down

0 comments on commit a27bbc4

Please sign in to comment.