Remove unused variables in StartPlan
This commit is contained in:
parent
dc73035607
commit
bfa7518e40
|
@ -115,15 +115,6 @@ export default function StartPlan() {
|
||||||
toast('Commas and single quotes would break CSV exports')
|
toast('Commas and single quotes would break CSV exports')
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const saveText = useMemo(() => {
|
|
||||||
if (minutes === '00' && seconds === '00') return 'Save'
|
|
||||||
return `Resting ${minutes}:${seconds}`
|
|
||||||
}, [minutes, seconds])
|
|
||||||
|
|
||||||
const progress = useMemo(() => {
|
|
||||||
return (Number(minutes) * 60 + Number(seconds)) / 210
|
|
||||||
}, [minutes, seconds])
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<StackHeader title={params.plan.days.replace(/,/g, ', ')} />
|
<StackHeader title={params.plan.days.replace(/,/g, ', ')} />
|
||||||
|
@ -174,7 +165,7 @@ export default function StartPlan() {
|
||||||
<ProgressBar
|
<ProgressBar
|
||||||
visible={minutes !== '00' || seconds !== '00'}
|
visible={minutes !== '00' || seconds !== '00'}
|
||||||
style={{marginBottom: MARGIN}}
|
style={{marginBottom: MARGIN}}
|
||||||
progress={progress}
|
progress={(Number(minutes) * 60 + Number(seconds)) / 210}
|
||||||
/>
|
/>
|
||||||
<Button mode="contained" icon="save" onPress={handleSubmit}>
|
<Button mode="contained" icon="save" onPress={handleSubmit}>
|
||||||
Save
|
Save
|
||||||
|
|
Loading…
Reference in New Issue
Block a user