Commit 9836c970 authored by isuraem's avatar isuraem

UI_Changes

parent 967efaa7
...@@ -84,13 +84,6 @@ const ExerciseView = (props) => { ...@@ -84,13 +84,6 @@ const ExerciseView = (props) => {
} }
}; };
const renderStep = ({ item, index }) => (
<View style={styles.stepContainer}>
<Dot width={16} height={16} color={COLORS.primary} style={styles.dotIcon} />
<Text style={styles.stepItem}>{item.step}</Text>
</View>
);
useEffect(() => { useEffect(() => {
// Initialize remainingTime when component mounts // Initialize remainingTime when component mounts
setRemainingTime(data.duration * 2); setRemainingTime(data.duration * 2);
...@@ -145,7 +138,7 @@ const ExerciseView = (props) => { ...@@ -145,7 +138,7 @@ const ExerciseView = (props) => {
<Text>{remainingTime} seconds</Text> <Text>{remainingTime} seconds</Text>
</View> </View>
</View> </View>
<View style={{ display: 'flex', justifyContent: 'center', flexDirection: 'row' }}> <View style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', flexDirection: 'coloum', paddingHorizontal: 0}}>
{remainingTime > 0 && {remainingTime > 0 &&
<View style={styles.buttonsContainer}> <View style={styles.buttonsContainer}>
<TouchableOpacity style={styles.button} onPress={videoPaused ? handlePlay : handlePause}> <TouchableOpacity style={styles.button} onPress={videoPaused ? handlePlay : handlePause}>
...@@ -328,7 +321,9 @@ const styles = StyleSheet.create({ ...@@ -328,7 +321,9 @@ const styles = StyleSheet.create({
shadowRadius: 3, shadowRadius: 3,
elevation: 5, elevation: 5,
width: "80%", width: "80%",
marginLeft: "10%" marginLeft: "10%",
flexDirection: 'row',
marginLeft: -10
}, },
linearGradient: { linearGradient: {
width: '100%', width: '100%',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment