Make whole day column clickable
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import {
|
import {
|
||||||
Text, View
|
Text, View, TouchableOpacity
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import Svg,{
|
import Svg,{
|
||||||
G,
|
G,
|
||||||
@@ -112,7 +112,7 @@ export default class DayColumn extends Component {
|
|||||||
// )
|
// )
|
||||||
|
|
||||||
const column = (
|
const column = (
|
||||||
<G onPress={() => this.passDateToDayView(dateString)}>
|
<G>
|
||||||
<Rect
|
<Rect
|
||||||
height={chartHeight}
|
height={chartHeight}
|
||||||
{...styles.column.rect}
|
{...styles.column.rect}
|
||||||
@@ -122,7 +122,10 @@ export default class DayColumn extends Component {
|
|||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View>
|
<TouchableOpacity
|
||||||
|
onPress={() => this.passDateToDayView(dateString)}
|
||||||
|
activeOpacity={1}
|
||||||
|
>
|
||||||
<View height={symptomHeight}>
|
<View height={symptomHeight}>
|
||||||
<View style={styles.symptomRow}>
|
<View style={styles.symptomRow}>
|
||||||
{typeof symptoms.bleeding === 'number' &&
|
{typeof symptoms.bleeding === 'number' &&
|
||||||
@@ -199,7 +202,7 @@ export default class DayColumn extends Component {
|
|||||||
{cycleDayLabel}
|
{cycleDayLabel}
|
||||||
{dateLabel}
|
{dateLabel}
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</TouchableOpacity>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user