Bring in different shades for desire dots on chart

This commit is contained in:
emelko
2020-03-26 23:30:50 +01:00
parent 17815fcefe
commit 268ec56c88
+6 -2
View File
@@ -161,9 +161,13 @@ export const symptomColorMethods = {
const colorIndex = value
return colorIndex
},
'default': () => { // desire, pain, mood, note
const colorIndex = 0
'desire': (symptomData) => {
const { value } = symptomData
const colorIndex = value
return colorIndex
},
'default': () => { //pain, mood, note
return 0
}
}