|
@@ -925,9 +925,19 @@ export default function IndexConsole(props: { record: any, count: number, access
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|
|
|
<View className='btn_line' />
|
|
<View className='btn_line' />
|
|
|
- {
|
|
|
|
|
|
|
+ {/* {
|
|
|
(status == 'WAIT_FOR_START' || status == 'ONGOING1') &&
|
|
(status == 'WAIT_FOR_START' || status == 'ONGOING1') &&
|
|
|
<View onClick={tapStartSleep} className={status == 'ONGOING1' ? 'console_btn btn_sleep' : 'console_btn btn_sleep btn_disable'}>
|
|
<View onClick={tapStartSleep} className={status == 'ONGOING1' ? 'console_btn btn_sleep' : 'console_btn btn_sleep btn_disable'}>
|
|
|
|
|
+ <Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32),color:ColorType.black }}>{t('feature.track_time_duration.common.start_sleep')}</Text>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ } */}
|
|
|
|
|
+ {
|
|
|
|
|
+ status == 'ONGOING1' && <View onClick={tapStartSleep} className='console_btn btn_sleep'>
|
|
|
|
|
+ <Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32), color: ColorType.black }}>{t('feature.track_time_duration.common.start_sleep')}</Text>
|
|
|
|
|
+ </View>
|
|
|
|
|
+ }
|
|
|
|
|
+ {
|
|
|
|
|
+ status == 'WAIT_FOR_START' && <View onClick={tapStartSleep} className='console_btn btn_sleep btn_disable'>
|
|
|
<Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32), color: ColorType.black }}>{t('feature.track_time_duration.common.start_sleep')}</Text>
|
|
<Text style={{ fontWeight: 'bold', fontSize: rpxToPx(32), color: ColorType.black }}>{t('feature.track_time_duration.common.start_sleep')}</Text>
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|