allows unselect in bleeding, mucus, cervix and desire
This commit is contained in:
@@ -39,7 +39,7 @@ export default class Bleeding extends Component {
|
|||||||
<SelectTabGroup
|
<SelectTabGroup
|
||||||
buttons={bleedingRadioProps}
|
buttons={bleedingRadioProps}
|
||||||
active={this.state.currentValue}
|
active={this.state.currentValue}
|
||||||
onSelect={val => this.setState({ currentValue: val })}
|
onSelect={val => val === this.state.currentValue ? this.setState({ currentValue: null }) : this.setState({ currentValue: val })}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export default class Cervix extends Component {
|
|||||||
<SelectTabGroup
|
<SelectTabGroup
|
||||||
buttons={cervixOpeningRadioProps}
|
buttons={cervixOpeningRadioProps}
|
||||||
active={this.state.opening}
|
active={this.state.opening}
|
||||||
onSelect={val => this.setState({ opening: val })}
|
onSelect={val => val === this.state.opening ? this.setState({ opening: null }) : this.setState({ opening: val })}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
@@ -59,7 +59,7 @@ export default class Cervix extends Component {
|
|||||||
<SelectTabGroup
|
<SelectTabGroup
|
||||||
buttons={cervixFirmnessRadioProps}
|
buttons={cervixFirmnessRadioProps}
|
||||||
active={this.state.firmness}
|
active={this.state.firmness}
|
||||||
onSelect={val => this.setState({ firmness: val })}
|
onSelect={val => val === this.state.firmness ? this.setState({ firmness: null }) : this.setState({ firmness: val })}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
@@ -69,7 +69,7 @@ export default class Cervix extends Component {
|
|||||||
<SelectTabGroup
|
<SelectTabGroup
|
||||||
buttons={cervixPositionRadioProps}
|
buttons={cervixPositionRadioProps}
|
||||||
active={this.state.position}
|
active={this.state.position}
|
||||||
onSelect={val => this.setState({ position: val })}
|
onSelect={val => val === this.state.position ? this.setState({ position: null }) : this.setState({ position: val })}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
<SymptomSection
|
<SymptomSection
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ export default class Desire extends Component {
|
|||||||
<SelectTabGroup
|
<SelectTabGroup
|
||||||
buttons={desireRadioProps}
|
buttons={desireRadioProps}
|
||||||
active={this.state.currentValue}
|
active={this.state.currentValue}
|
||||||
onSelect={val => this.setState({ currentValue: val })}
|
onSelect={val => val === this.state.currentValue ? this.setState({ currentValue: null }) : this.setState({ currentValue: val })}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export default class Mucus extends Component {
|
|||||||
>
|
>
|
||||||
<SelectTabGroup
|
<SelectTabGroup
|
||||||
buttons={mucusFeeling}
|
buttons={mucusFeeling}
|
||||||
onSelect={val => this.setState({ feeling: val })}
|
onSelect={val => val === this.state.feeling ? this.setState({ feeling: null }) : this.setState({ feeling: val })}
|
||||||
active={this.state.feeling}
|
active={this.state.feeling}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
@@ -56,7 +56,7 @@ export default class Mucus extends Component {
|
|||||||
>
|
>
|
||||||
<SelectTabGroup
|
<SelectTabGroup
|
||||||
buttons={mucusTexture}
|
buttons={mucusTexture}
|
||||||
onSelect={val => this.setState({ texture: val })}
|
onSelect={val => val === this.state.texture ? this.setState({ texture: null }) : this.setState({ texture: val })}
|
||||||
active={this.state.texture}
|
active={this.state.texture}
|
||||||
/>
|
/>
|
||||||
</SymptomSection>
|
</SymptomSection>
|
||||||
|
|||||||
Reference in New Issue
Block a user