import { View, Text } from "@tarojs/components";
import Metric from "@/features/trackSomething/components/Metric";
import { useDidShow, usePullDownRefresh } from "@tarojs/taro";

export default function Page() {
    useDidShow(() => {
        global.updateTab(1)
    })

    usePullDownRefresh(() => {
        
        global.refreshMetric()
    })
    return <View className="container">
        <Metric />
    </View>
}