update DemoWeatherAppUi,

This commit is contained in:
louiscklaw
2025-06-08 16:44:59 +08:00
parent ffbe63e421
commit 5be77aae23
13 changed files with 6 additions and 532 deletions

View File

@@ -14,11 +14,11 @@ import {
import { Geolocation } from '@capacitor/geolocation';
import { useEffect, useState } from 'react';
import { SkeletonDashboard } from '../TestComponents/SkeletonDashboard';
import { SkeletonDashboard } from '../components/SkeletonDashboard';
import { chevronBackOutline, refreshOutline } from 'ionicons/icons';
import { CurrentWeather } from '../TestComponents/CurrentWeather';
import { CurrentWeather } from '../components/CurrentWeather';
function Tab1() {
function Tab1(): React.JSX.Element {
const router = useIonRouter();
const [currentWeather, setCurrentWeather] = useState(false);

View File

@@ -9,10 +9,10 @@ import {
IonTitle,
IonToolbar,
} from '@ionic/react';
import { useState } from 'react';
import { CurrentWeather } from '../TestComponents/CurrentWeather';
import React, { useState } from 'react';
import { CurrentWeather } from '../components/CurrentWeather';
function Tab2() {
function Tab2(): React.JSX.Element {
const [search, setSearch] = useState('');
const [currentWeather, setCurrentWeather] = useState(false);

View File

@@ -23,6 +23,7 @@ function DemoWeatherAppUi() {
</IonRouterOutlet>
{/* */}
<IonTabBar slot="bottom">
<IonTabButton tab="tab1" href="/demo-weather-app-ui/tab1">
<IonIcon icon={cloudOutline} />