leon před 1 rokem
rodič
revize
58fb55741d

+ 11 - 1
src/features/trackTimeDuration/components/IndexConsole.tsx

@@ -925,9 +925,19 @@ export default function IndexConsole(props: { record: any, count: number, access
                     </View>
             }
             <View className='btn_line' />
-            {
+            {/* {
                 (status == 'WAIT_FOR_START' || status == 'ONGOING1') &&
                 <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>
                 </View>
             }