Leon 2 лет назад
Родитель
Сommit
9f0c70fc5d
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      src/components/layout/Header.tsx

+ 3 - 2
src/components/layout/Header.tsx

@@ -9,10 +9,11 @@ export default function Component(props: { title: string, action?: Function }) {
     const {t} = useTranslation()
     const {t} = useTranslation()
     return <View className="header">
     return <View className="header">
         <Text className="header_title">{props.title}</Text>
         <Text className="header_title">{props.title}</Text>
-        {
+        <Text className="header_action fast_sleep_text"  onClick={() => { props.action!() }}>{t('feature.track_time_duration.record_fast_sleep.header.btn_show_all')}</Text>
+        {/* {
             time.scenario=='FAST_SLEEP'?<Text className="header_action fast_sleep_text"  onClick={() => { props.action!() }}>{t('feature.track_time_duration.record_fast_sleep.header.btn_show_all')}</Text>:
             time.scenario=='FAST_SLEEP'?<Text className="header_action fast_sleep_text"  onClick={() => { props.action!() }}>{t('feature.track_time_duration.record_fast_sleep.header.btn_show_all')}</Text>:
             <Text className="header_action" style={{color:getThemeColor(time)}} onClick={() => { props.action!(); }}>{t('feature.track_time_duration.record_fast_sleep.header.btn_show_all')}</Text>
             <Text className="header_action" style={{color:getThemeColor(time)}} onClick={() => { props.action!(); }}>{t('feature.track_time_duration.record_fast_sleep.header.btn_show_all')}</Text>
-        }
+        } */}
         
         
     </View>
     </View>
 }
 }