Skip to content

Commit 8544a57

Browse files
committed
docs(react): update syntax
1 parent ef8ae09 commit 8544a57

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/react/your-first-app.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,21 +223,23 @@ const Tab2: React.FC = () => {
223223
<IonTitle>Photo Gallery</IonTitle>
224224
</IonToolbar>
225225
</IonHeader>
226-
<IonContent>
226+
<IonContent fullscreen>
227227
<IonHeader collapse="condense">
228228
<IonToolbar>
229229
<IonTitle size="large">Photo Gallery</IonTitle>
230230
</IonToolbar>
231231
</IonHeader>
232+
232233
{/* CHANGE: Add the floating action button */}
233234
<IonFab vertical="bottom" horizontal="center" slot="fixed">
234235
<IonFabButton>
235236
<IonIcon icon={camera}></IonIcon>
236237
</IonFabButton>
237238
</IonFab>
239+
240+
{/* CHANGE: Remove or comment out `ExploreContainer` */}
241+
{/* <ExploreContainer name="Tab 2 page" /> */}
238242
</IonContent>
239-
{/* CHANGE: Remove or comment out `ExploreContainer` */}
240-
{/* <ExploreContainer name="Tab 2 page" /> */}
241243
</IonPage>
242244
);
243245
};

versioned_docs/version-v7/react/your-first-app.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,21 +223,23 @@ const Tab2: React.FC = () => {
223223
<IonTitle>Photo Gallery</IonTitle>
224224
</IonToolbar>
225225
</IonHeader>
226-
<IonContent>
226+
<IonContent fullscreen>
227227
<IonHeader collapse="condense">
228228
<IonToolbar>
229229
<IonTitle size="large">Photo Gallery</IonTitle>
230230
</IonToolbar>
231231
</IonHeader>
232+
232233
{/* CHANGE: Add the floating action button */}
233234
<IonFab vertical="bottom" horizontal="center" slot="fixed">
234235
<IonFabButton>
235236
<IonIcon icon={camera}></IonIcon>
236237
</IonFabButton>
237238
</IonFab>
239+
240+
{/* CHANGE: Remove or comment out `ExploreContainer` */}
241+
{/* <ExploreContainer name="Tab 2 page" /> */}
238242
</IonContent>
239-
{/* CHANGE: Remove or comment out `ExploreContainer` */}
240-
{/* <ExploreContainer name="Tab 2 page" /> */}
241243
</IonPage>
242244
);
243245
};

0 commit comments

Comments
 (0)