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
9868e8a9
Commit
9868e8a9
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Add explainer texts to cervix
parent
ea8cfed7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
components/cycle-day/labels/labels.js
+16
-3
16 additions, 3 deletions
components/cycle-day/labels/labels.js
components/cycle-day/symptoms/cervix.js
+13
-14
13 additions, 14 deletions
components/cycle-day/symptoms/cervix.js
with
29 additions
and
17 deletions
components/cycle-day/labels/labels.js
+
16
−
3
View file @
9868e8a9
...
...
@@ -2,10 +2,23 @@ export const bleeding = ['spotting', 'light', 'medium', 'heavy']
export
const
mucusFeeling
=
[
'
dry
'
,
'
nothing
'
,
'
wet
'
,
'
slippery
'
]
export
const
mucusTexture
=
[
'
nothing
'
,
'
creamy
'
,
'
egg white
'
]
export
const
mucusNFP
=
[
'
t
'
,
'
Ø
'
,
'
f
'
,
'
S
'
,
'
S+
'
]
export
const
cervixOpening
=
[
'
closed
'
,
'
medium
'
,
'
open
'
]
export
const
cervixFirmness
=
[
'
hard
'
,
'
soft
'
]
export
const
cervixPosition
=
[
'
low
'
,
'
medium
'
,
'
high
'
]
export
const
intensity
=
[
'
low
'
,
'
medium
'
,
'
high
'
]
export
const
cervix
=
{
opening
:
{
categories
:
[
'
closed
'
,
'
medium
'
,
'
open
'
],
explainer
:
'
Is your cervix open or closed?
'
},
firmness
:
{
categories
:
[
'
hard
'
,
'
soft
'
],
explainer
:
"
When it's hard it might feel like the tip of your nose
"
},
position
:
{
categories
:
[
'
low
'
,
'
medium
'
,
'
high
'
],
explainer
:
'
How high up in the vagina is the cervix?
'
}
}
export
const
sex
=
{
solo
:
'
Solo
'
,
partner
:
'
Partner
'
,
...
...
This diff is collapsed.
Click to expand it.
components/cycle-day/symptoms/cervix.js
+
13
−
14
View file @
9868e8a9
...
...
@@ -6,14 +6,10 @@ import {
}
from
'
react-native
'
import
styles
from
'
../../../styles
'
import
{
saveSymptom
}
from
'
../../../db
'
import
{
cervixOpening
as
openingLabels
,
cervixFirmness
as
firmnessLabels
,
cervixPosition
as
positionLabels
}
from
'
../labels/labels
'
import
{
cervix
as
labels
}
from
'
../labels/labels
'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
SelectTabGroup
from
'
../select-tab-group
'
import
{
SymptomSectionHeader
}
from
'
../../app-text
'
import
{
SymptomSectionHeader
,
AppText
}
from
'
../../app-text
'
export
default
class
Cervix
extends
Component
{
constructor
(
props
)
{
...
...
@@ -36,36 +32,39 @@ export default class Cervix extends Component {
render
()
{
const
cervixOpeningRadioProps
=
[
{
label
:
openingLabel
s
[
0
],
value
:
0
},
{
label
:
openingLabel
s
[
1
],
value
:
1
},
{
label
:
openingLabel
s
[
2
],
value
:
2
}
{
label
:
labels
.
opening
.
categorie
s
[
0
],
value
:
0
},
{
label
:
labels
.
opening
.
categorie
s
[
1
],
value
:
1
},
{
label
:
labels
.
opening
.
categorie
s
[
2
],
value
:
2
}
]
const
cervixFirmnessRadioProps
=
[
{
label
:
firmness
Label
s
[
0
],
value
:
0
},
{
label
:
firmness
Label
s
[
1
],
value
:
1
}
{
label
:
labels
.
firmness
.
categorie
s
[
0
],
value
:
0
},
{
label
:
labels
.
firmness
.
categorie
s
[
1
],
value
:
1
}
]
const
cervixPositionRadioProps
=
[
{
label
:
position
Label
s
[
0
],
value
:
0
},
{
label
:
position
Label
s
[
1
],
value
:
1
},
{
label
:
position
Label
s
[
2
],
value
:
2
}
{
label
:
labels
.
position
.
categorie
s
[
0
],
value
:
0
},
{
label
:
labels
.
position
.
categorie
s
[
1
],
value
:
1
},
{
label
:
labels
.
position
.
categorie
s
[
2
],
value
:
2
}
]
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
View
>
<
SymptomSectionHeader
>
Opening
<
/SymptomSectionHeader
>
<
AppText
>
{
labels
.
opening
.
explainer
}
<
/AppText
>
<
SelectTabGroup
buttons
=
{
cervixOpeningRadioProps
}
active
=
{
this
.
state
.
opening
}
onSelect
=
{
val
=>
this
.
setState
({
opening
:
val
})}
/
>
<
SymptomSectionHeader
>
Firmness
<
/SymptomSectionHeader
>
<
AppText
>
{
labels
.
firmness
.
explainer
}
<
/AppText
>
<
SelectTabGroup
buttons
=
{
cervixFirmnessRadioProps
}
active
=
{
this
.
state
.
firmness
}
onSelect
=
{
val
=>
this
.
setState
({
firmness
:
val
})}
/
>
<
SymptomSectionHeader
>
Position
<
/SymptomSectionHeader
>
<
AppText
>
{
labels
.
position
.
explainer
}
<
/AppText
>
<
SelectTabGroup
buttons
=
{
cervixPositionRadioProps
}
active
=
{
this
.
state
.
position
}
...
...
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