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
03022ffa
"config.js" did not exist on "cd1e689aae98cb467e8a5124e3f68819978c6f34"
Commit
03022ffa
authored
6 years ago
by
Julia Friesel
Browse files
Options
Downloads
Patches
Plain Diff
Pass in symptoms as flat properties, not object
parent
44c51225
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/chart/chart.js
+2
-1
2 additions, 1 deletion
components/chart/chart.js
components/chart/day-column.js
+10
-11
10 additions, 11 deletions
components/chart/day-column.js
with
12 additions
and
12 deletions
components/chart/chart.js
+
2
−
1
View file @
03022ffa
...
...
@@ -62,6 +62,7 @@ export default class CycleChart extends Component {
jsDate
.
getDate
()
).
toString
()
})
const
chartSymptoms
=
[
'
bleeding
'
,
'
temperature
'
,
...
...
@@ -103,7 +104,7 @@ export default class CycleChart extends Component {
return
{
dateString
,
y
:
temp
?
normalizeToScale
(
temp
,
columnHeight
)
:
null
,
symptoms
,
...
symptoms
,
...
getFhmAndLtlInfo
(
dateString
,
temp
,
columnHeight
)
}
})
...
...
This diff is collapsed.
Click to expand it.
components/chart/day-column.js
+
10
−
11
View file @
03022ffa
...
...
@@ -31,7 +31,6 @@ export default class DayColumn extends Component {
dateString
,
y
,
temperatureExclude
,
symptoms
,
drawFhmLine
,
drawLtlAt
,
rightY
,
...
...
@@ -116,36 +115,36 @@ export default class DayColumn extends Component {
>
<
View
height
=
{
symptomHeight
}
>
<
View
style
=
{
styles
.
symptomRow
}
>
{
typeof
symptom
s
.
bleeding
===
'
number
'
&&
{
typeof
this
.
prop
s
.
bleeding
===
'
number
'
&&
<
Icon
name
=
'
drop
'
size
=
{
12
}
color
=
{
styles
.
bleedingIconShades
[
symptom
s
.
bleeding
]}
color
=
{
styles
.
bleedingIconShades
[
this
.
prop
s
.
bleeding
]}
key
=
'
bleeding
'
/>
}
<
/View
>
<
View
style
=
{
styles
.
symptomRow
}
>
{
typeof
symptom
s
.
mucus
===
'
number
'
&&
{
typeof
this
.
prop
s
.
mucus
===
'
number
'
&&
<
View
{...
styles
.
mucusIcon
}
backgroundColor
=
{
styles
.
mucusIconShades
[
symptom
s
.
mucus
]}
backgroundColor
=
{
styles
.
mucusIconShades
[
this
.
prop
s
.
mucus
]}
key
=
'
mucus
'
/>
}
<
/View
>
<
View
style
=
{
styles
.
symptomRow
}
>
{
typeof
symptom
s
.
cervix
===
'
number
'
&&
{
typeof
this
.
prop
s
.
cervix
===
'
number
'
&&
<
View
{...
styles
.
mucusIcon
}
// cervix is sum of openess and firmness - fertile only when closed and hard (=0)
backgroundColor
=
{
symptom
s
.
cervix
>
0
?
'
blue
'
:
'
green
'
}
backgroundColor
=
{
this
.
prop
s
.
cervix
>
0
?
'
blue
'
:
'
green
'
}
key
=
'
cervix
'
/>
}
<
/View
>
<
View
style
=
{
styles
.
symptomRow
}
>
{
typeof
symptom
s
.
sex
===
'
number
'
&&
{
typeof
this
.
prop
s
.
sex
===
'
number
'
&&
<
View
{...
styles
.
mucusIcon
}
backgroundColor
=
'
orange
'
...
...
@@ -154,7 +153,7 @@ export default class DayColumn extends Component {
}
<
/View
>
<
View
style
=
{
styles
.
symptomRow
}
>
{
typeof
symptom
s
.
desire
===
'
number
'
&&
{
typeof
this
.
prop
s
.
desire
===
'
number
'
&&
<
View
{...
styles
.
mucusIcon
}
backgroundColor
=
'
red
'
...
...
@@ -163,7 +162,7 @@ export default class DayColumn extends Component {
}
<
/View
>
<
View
style
=
{
styles
.
symptomRow
}
>
{
symptom
s
.
pain
&&
{
this
.
prop
s
.
pain
&&
<
View
{...
styles
.
mucusIcon
}
backgroundColor
=
'
blue
'
...
...
@@ -172,7 +171,7 @@ export default class DayColumn extends Component {
}
<
/View
>
<
View
style
=
{
styles
.
symptomRow
}
>
{
symptom
s
.
note
&&
{
this
.
prop
s
.
note
&&
<
View
{...
styles
.
mucusIcon
}
backgroundColor
=
'
green
'
...
...
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