Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
backup
Drip
Commits
6baeaa03
Commit
6baeaa03
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Add explainers to sex view
parent
51622867
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/cycle-day/labels/labels.js
+3
-1
3 additions, 1 deletion
components/cycle-day/labels/labels.js
components/cycle-day/symptoms/sex.js
+31
-23
31 additions, 23 deletions
components/cycle-day/symptoms/sex.js
with
34 additions
and
24 deletions
components/cycle-day/labels/labels.js
+
3
−
1
View file @
6baeaa03
...
...
@@ -43,7 +43,9 @@ export const sex = {
patch
:
'
Patch
'
,
ring
:
'
Ring
'
,
implant
:
'
Implant
'
,
other
:
'
Other
'
other
:
'
Other
'
,
activityExplainer
:
'
Were you sexually active today?
'
,
contraceptiveExplainer
:
'
Did you use contraceptives?
'
}
export
const
pain
=
{
...
...
This diff is collapsed.
Click to expand it.
components/cycle-day/symptoms/sex.js
+
31
−
23
View file @
6baeaa03
...
...
@@ -6,39 +6,39 @@ import {
}
from
'
react-native
'
import
styles
from
'
../../../styles
'
import
{
saveSymptom
}
from
'
../../../db
'
import
{
sex
as
sexL
abels
}
from
'
../labels/labels
'
import
{
sex
as
l
abels
}
from
'
../labels/labels
'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
SelectBoxGroup
from
'
../select-box-group
'
import
{
SymptomSection
Header
}
from
'
../../app-text
'
import
SymptomSection
from
'
./symptom-section
'
const
sexBoxes
=
[{
label
:
sexL
abels
.
solo
,
label
:
l
abels
.
solo
,
stateKey
:
'
solo
'
},
{
label
:
sexL
abels
.
partner
,
label
:
l
abels
.
partner
,
stateKey
:
'
partner
'
}]
const
contraceptiveBoxes
=
[{
label
:
sexL
abels
.
condom
,
label
:
l
abels
.
condom
,
stateKey
:
'
condom
'
},
{
label
:
sexL
abels
.
pill
,
label
:
l
abels
.
pill
,
stateKey
:
'
pill
'
},
{
label
:
sexL
abels
.
iud
,
label
:
l
abels
.
iud
,
stateKey
:
'
iud
'
},
{
label
:
sexL
abels
.
patch
,
label
:
l
abels
.
patch
,
stateKey
:
'
patch
'
},
{
label
:
sexL
abels
.
ring
,
label
:
l
abels
.
ring
,
stateKey
:
'
ring
'
},
{
label
:
sexL
abels
.
implant
,
label
:
l
abels
.
implant
,
stateKey
:
'
implant
'
},
{
label
:
sexL
abels
.
other
,
label
:
l
abels
.
other
,
stateKey
:
'
other
'
}]
...
...
@@ -69,18 +69,26 @@ export default class Sex extends Component {
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
SymptomSectionHeader
>
Activity
<
/SymptomSectionHeader
>
<
SelectBoxGroup
data
=
{
sexBoxes
}
onSelect
=
{
this
.
toggleState
}
optionsState
=
{
this
.
state
}
/
>
<
SymptomSectionHeader
>
Contraceptives
<
/SymptomSectionHeader
>
<
SelectBoxGroup
data
=
{
contraceptiveBoxes
}
onSelect
=
{
this
.
toggleState
}
optionsState
=
{
this
.
state
}
/
>
<
SymptomSection
header
=
"
Activity
"
explainer
=
{
labels
.
activityExplainer
}
>
<
SelectBoxGroup
data
=
{
sexBoxes
}
onSelect
=
{
this
.
toggleState
}
optionsState
=
{
this
.
state
}
/
>
<
/SymptomSection
>
<
SymptomSection
header
=
"
Contraceptives
"
explainer
=
{
labels
.
contraceptiveExplainer
}
>
<
SelectBoxGroup
data
=
{
contraceptiveBoxes
}
onSelect
=
{
this
.
toggleState
}
optionsState
=
{
this
.
state
}
/
>
<
/SymptomSection
>
{
this
.
state
.
other
&&
<
TextInput
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment