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
201fb5e2
Commit
201fb5e2
authored
6 years ago
by
Stefanie Grewenig
Browse files
Options
Downloads
Patches
Plain Diff
move hard coded headers and explainers from bleeding into cycle day i18n
- issue: 127 - by: sg
parent
5a40f6cb
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/symptoms/bleeding.js
+9
-9
9 additions, 9 deletions
components/cycle-day/symptoms/bleeding.js
i18n/en/cycle-day.js
+12
-1
12 additions, 1 deletion
i18n/en/cycle-day.js
with
21 additions
and
10 deletions
components/cycle-day/symptoms/bleeding.js
+
9
−
9
View file @
201fb5e2
...
@@ -6,7 +6,7 @@ import {
...
@@ -6,7 +6,7 @@ import {
}
from
'
react-native
'
}
from
'
react-native
'
import
styles
from
'
../../../styles
'
import
styles
from
'
../../../styles
'
import
{
saveSymptom
}
from
'
../../../db
'
import
{
saveSymptom
}
from
'
../../../db
'
import
{
bleeding
as
labels
}
from
'
../../../i18n/en/cycle-day
'
import
{
bleeding
}
from
'
../../../i18n/en/cycle-day
'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
ActionButtonFooter
from
'
./action-button-footer
'
import
SelectTabGroup
from
'
../select-tab-group
'
import
SelectTabGroup
from
'
../select-tab-group
'
import
SymptomSection
from
'
./symptom-section
'
import
SymptomSection
from
'
./symptom-section
'
...
@@ -25,17 +25,17 @@ export default class Bleeding extends Component {
...
@@ -25,17 +25,17 @@ export default class Bleeding extends Component {
render
()
{
render
()
{
const
bleedingRadioProps
=
[
const
bleedingRadioProps
=
[
{
label
:
labels
[
0
],
value
:
0
},
{
label
:
bleeding
.
labels
[
0
],
value
:
0
},
{
label
:
labels
[
1
],
value
:
1
},
{
label
:
bleeding
.
labels
[
1
],
value
:
1
},
{
label
:
labels
[
2
],
value
:
2
},
{
label
:
bleeding
.
labels
[
2
],
value
:
2
},
{
label
:
labels
[
3
],
value
:
3
},
{
label
:
bleeding
.
labels
[
3
],
value
:
3
},
]
]
return
(
return
(
<
View
style
=
{{
flex
:
1
}}
>
<
View
style
=
{{
flex
:
1
}}
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
ScrollView
style
=
{
styles
.
page
}
>
<
SymptomSection
<
SymptomSection
header
=
"
Heaviness
"
header
=
{
bleeding
.
heaviness
.
header
}
explainer
=
"
How heavy is the bleeding?
"
explainer
=
{
bleeding
.
heaviness
.
explainer
}
>
>
<
SelectTabGroup
<
SelectTabGroup
buttons
=
{
bleedingRadioProps
}
buttons
=
{
bleedingRadioProps
}
...
@@ -44,8 +44,8 @@ export default class Bleeding extends Component {
...
@@ -44,8 +44,8 @@ export default class Bleeding extends Component {
/
>
/
>
<
/SymptomSection
>
<
/SymptomSection
>
<
SymptomSection
<
SymptomSection
header
=
"
Exclude
"
header
=
{
bleeding
.
exclude
.
header
}
explainer
=
"
You can exclude this value if it's not menstrual bleeding
"
explainer
=
{
bleeding
.
exclude
.
explainer
}
inline
=
{
true
}
inline
=
{
true
}
>
>
<
Switch
<
Switch
...
...
This diff is collapsed.
Click to expand it.
i18n/en/cycle-day.js
+
12
−
1
View file @
201fb5e2
export
const
bleeding
=
[
'
spotting
'
,
'
light
'
,
'
medium
'
,
'
heavy
'
]
export
const
mucusNFP
=
[
'
t
'
,
'
Ø
'
,
'
f
'
,
'
S
'
,
'
S+
'
]
export
const
mucusNFP
=
[
'
t
'
,
'
Ø
'
,
'
f
'
,
'
S
'
,
'
S+
'
]
export
const
intensity
=
[
'
low
'
,
'
medium
'
,
'
high
'
]
export
const
intensity
=
[
'
low
'
,
'
medium
'
,
'
high
'
]
export
const
bleeding
=
{
labels
:
[
'
spotting
'
,
'
light
'
,
'
medium
'
,
'
heavy
'
],
heaviness
:
{
header
:
"
Heaviness
"
,
explainer
:
"
How heavy is the bleeding?
"
,
},
exclude
:
{
header
:
"
Exclude
"
,
explainer
:
"
You can exclude this value if it's not menstrual bleeding
"
}
}
export
const
cervix
=
{
export
const
cervix
=
{
opening
:
{
opening
:
{
categories
:
[
'
closed
'
,
'
medium
'
,
'
open
'
],
categories
:
[
'
closed
'
,
'
medium
'
,
'
open
'
],
...
...
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