update demo-react-whatsapp-clone,

This commit is contained in:
louiscklaw
2025-06-07 10:18:28 +08:00
parent d3d95469ea
commit 5b680f2219
6 changed files with 8 additions and 8 deletions

View File

@@ -14,9 +14,9 @@ import {
import { Geolocation } from '@capacitor/geolocation';
import { useEffect, useState } from 'react';
import { SkeletonDashboard } from '../components/SkeletonDashboard';
import { SkeletonDashboard } from '../TestComponents/SkeletonDashboard';
import { chevronBackOutline, refreshOutline } from 'ionicons/icons';
import { CurrentWeather } from '../components/CurrentWeather';
import { CurrentWeather } from '../TestComponents/CurrentWeather';
function Tab1() {
const router = useIonRouter();

View File

@@ -10,7 +10,7 @@ import {
IonToolbar,
} from '@ionic/react';
import { useState } from 'react';
import { CurrentWeather } from '../components/CurrentWeather';
import { CurrentWeather } from '../TestComponents/CurrentWeather';
function Tab2() {
const [search, setSearch] = useState('');

View File

@@ -12,23 +12,23 @@ function DemoWeatherAppUi() {
return (
<IonTabs>
<IonRouterOutlet>
<Route exact path="/demo-weather-app/tab1">
<Route exact path="/demo-weather-app-ui/tab1">
<Tab1 />
</Route>
<Route exact path="/demo-weather-app/tab2">
<Route exact path="/demo-weather-app-ui/tab2">
<Tab2 />
</Route>
<Redirect exact path="/demo-weather-app" to="/demo-weather-app/tab1" />
<Redirect exact path="/demo-weather-app-ui" to="/demo-weather-app-ui/tab1" />
</IonRouterOutlet>
{/* */}
<IonTabBar slot="bottom">
<IonTabButton tab="tab1" href="/demo-weather-app/tab1">
<IonTabButton tab="tab1" href="/demo-weather-app-ui/tab1">
<IonIcon icon={cloudOutline} />
<IonLabel>Dashboard</IonLabel>
</IonTabButton>
<IonTabButton tab="tab2" href="/demo-weather-app/tab2">
<IonTabButton tab="tab2" href="/demo-weather-app-ui/tab2">
<IonIcon icon={searchOutline} />
<IonLabel>Search</IonLabel>
</IonTabButton>