update DemoStickyBottomSheetExample,

This commit is contained in:
louiscklaw
2025-06-08 15:21:40 +08:00
parent 8b32d153db
commit ba1e718039
11 changed files with 403 additions and 116 deletions

View File

@@ -3,32 +3,31 @@ import { IonIcon, IonLabel, IonRouterOutlet, IonTabBar, IonTabButton, IonTabs }
import { cloudOutline, searchOutline } from 'ionicons/icons';
import { Route, Redirect } from 'react-router';
import Tab1 from './AppPages/Tab1';
import Tab2 from './AppPages/Tab2';
import './style.scss';
import './theme/variables.scss';
import Home from './pages/Home';
function DemoStickyBottomSheetExample() {
return (
<IonTabs>
<IonTabs className="demo-sticky-bottom-sheet-example">
<IonRouterOutlet>
<Route exact path="/demo-weather-app/tab1">
<Tab1 />
</Route>
<Route exact path="/demo-weather-app/tab2">
<Tab2 />
<Route exact path="/demo-sticky-bottom-sheet-example/home">
<Home />
</Route>
<Redirect exact path="/demo-weather-app" to="/demo-weather-app/tab1" />
<Redirect
exact
path="/demo-sticky-bottom-sheet-example"
to="/demo-sticky-bottom-sheet-example/home"
/>
</IonRouterOutlet>
{/* */}
<IonTabBar slot="bottom">
<IonTabButton tab="tab1" href="/demo-weather-app/tab1">
<IonTabButton tab="tab1" href="/demo-sticky-bottom-sheet-example/tab1">
<IonIcon icon={cloudOutline} />
<IonLabel>Dashboard</IonLabel>
</IonTabButton>
<IonTabButton tab="tab2" href="/demo-weather-app/tab2">
<IonTabButton tab="tab2" href="/demo-sticky-bottom-sheet-example/tab2">
<IonIcon icon={searchOutline} />
<IonLabel>Search</IonLabel>
</IonTabButton>