Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Telemedicine_App_Development
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
Shashini Thilakarathne
Telemedicine_App_Development
Commits
be4c94a9
Commit
be4c94a9
authored
Mar 17, 2024
by
Shashini Thilakarathne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated add entry form
parent
d21f8417
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
95 additions
and
88 deletions
+95
-88
StressPrediction/src/newJournalEntry.js
StressPrediction/src/newJournalEntry.js
+95
-88
No files found.
StressPrediction/src/newJournalEntry.js
View file @
be4c94a9
...
@@ -19,7 +19,7 @@ const AddData = () => {
...
@@ -19,7 +19,7 @@ const AddData = () => {
if
(
!
isNaN
(
sleepHoursValue
))
{
if
(
!
isNaN
(
sleepHoursValue
))
{
const
postData
=
{
const
postData
=
{
Job_Satisf
ica
tion
:
jobSatisfactionValue
,
Job_Satisf
ac
tion
:
jobSatisfactionValue
,
Sleep_Hours
:
sleepHoursValue
,
Sleep_Hours
:
sleepHoursValue
,
Text
:
Additional_Text
,
Text
:
Additional_Text
,
isNew
:
false
isNew
:
false
...
@@ -53,6 +53,7 @@ const AddData = () => {
...
@@ -53,6 +53,7 @@ const AddData = () => {
}}
}}
>
>
<
View
style
=
{
styles
.
modalContainer
}
>
<
View
style
=
{
styles
.
modalContainer
}
>
<
ScrollView
contentContainerStyle
=
{
styles
.
scrollViewContent
}
>
<
View
style
=
{
styles
.
modalContent
}
>
<
View
style
=
{
styles
.
modalContent
}
>
<
View
style
=
{
styles
.
radioGroup
}
>
<
View
style
=
{
styles
.
radioGroup
}
>
<
Text
style
=
{
styles
.
radioLabel
}
>
Select
Your
Job
Satisfaction
<
/Text
>
<
Text
style
=
{
styles
.
radioLabel
}
>
Select
Your
Job
Satisfaction
<
/Text
>
...
@@ -119,6 +120,7 @@ const AddData = () => {
...
@@ -119,6 +120,7 @@ const AddData = () => {
/
>
/
>
<
/View
>
<
/View
>
<
/View
>
<
/View
>
<
/ScrollView
>
<
/View
>
<
/View
>
<
/Modal
>
<
/Modal
>
<
/View
>
<
/View
>
...
@@ -156,17 +158,17 @@ const styles = StyleSheet.create({
...
@@ -156,17 +158,17 @@ const styles = StyleSheet.create({
borderRadius
:
6
,
borderRadius
:
6
,
top
:
50
,
top
:
50
,
width
:
200
,
width
:
200
,
display
:
'
none
'
,
display
:
'
none
'
,
},
},
Additionalinput
:
{
Additionalinput
:
{
borderWidth
:
1
,
borderWidth
:
1
,
borderColor
:
'
black
'
,
borderColor
:
'
black
'
,
margin
:
10
,
margin
:
-
10
,
padding
:
10
,
padding
:
10
,
fontSize
:
18
,
fontSize
:
18
,
borderRadius
:
6
,
borderRadius
:
6
,
top
:
15
,
top
:
-
10
,
height
:
15
0
,
height
:
22
0
,
},
},
image
:
{
image
:
{
width
:
'
100%
'
,
width
:
'
100%
'
,
...
@@ -182,12 +184,12 @@ const styles = StyleSheet.create({
...
@@ -182,12 +184,12 @@ const styles = StyleSheet.create({
height
:
'
200%
'
,
height
:
'
200%
'
,
top
:
'
-2%
'
,
top
:
'
-2%
'
,
},
},
scaleimg
:
{
scaleimg
:
{
width
:
'
250%
'
,
width
:
'
250%
'
,
height
:
'
13%
'
,
height
:
'
13%
'
,
left
:
-
200
,
left
:
-
200
,
top
:
280
,
top
:
280
,
position
:
'
absolute
'
,
position
:
'
absolute
'
,
},
},
modalContainer
:
{
modalContainer
:
{
flex
:
1
,
flex
:
1
,
...
@@ -199,8 +201,13 @@ const styles = StyleSheet.create({
...
@@ -199,8 +201,13 @@ const styles = StyleSheet.create({
backgroundColor
:
'
#fff
'
,
backgroundColor
:
'
#fff
'
,
padding
:
20
,
padding
:
20
,
borderRadius
:
10
,
borderRadius
:
10
,
width
:
'
90%
'
,
width
:
'
96%
'
,
height
:
'
80%
'
,
minHeight
:
'
90%
'
,
marginLeft
:
10
,
},
scrollViewContent
:
{
flexGrow
:
1
,
justifyContent
:
'
center
'
,
},
},
radioGroup
:
{
radioGroup
:
{
marginBottom
:
20
,
marginBottom
:
20
,
...
@@ -278,7 +285,7 @@ const styles = StyleSheet.create({
...
@@ -278,7 +285,7 @@ const styles = StyleSheet.create({
marginBottom
:
15
,
marginBottom
:
15
,
fontWeight
:
'
bold
'
,
fontWeight
:
'
bold
'
,
color
:
'
#7B241C
'
,
color
:
'
#7B241C
'
,
top
:
'
5%
'
,
top
:
'
-
5%
'
,
},
},
horizontalPicker
:
{
horizontalPicker
:
{
marginTop
:
-
10
,
marginTop
:
-
10
,
...
@@ -312,6 +319,6 @@ const styles = StyleSheet.create({
...
@@ -312,6 +319,6 @@ const styles = StyleSheet.create({
fontSize
:
16
,
fontSize
:
16
,
top
:
40
,
top
:
40
,
fontWeight
:
'
bold
'
,
fontWeight
:
'
bold
'
,
display
:
'
none
'
,
display
:
'
none
'
,
},
},
});
});
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