Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
EmidWife-New
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-24-005
EmidWife-New
Commits
9836c970
Commit
9836c970
authored
May 18, 2024
by
isuraem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI_Changes
parent
967efaa7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
src/screens/home/exercise/ExerciseActionView.js
src/screens/home/exercise/ExerciseActionView.js
+4
-9
No files found.
src/screens/home/exercise/ExerciseActionView.js
View file @
9836c970
...
@@ -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%
'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment