Skip to content

Commit

Permalink
COM-1466 - Fix Romain's review
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyCallegari committed Sep 23, 2020
1 parent 8fff1ef commit b0d229b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/cards/SurveyScoreSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SurveyScoreSelector = ({ onPressScore, selectedScore }: SurveyScoreSelecto

const scoreItem = (score: number) => (
<TouchableOpacity key={score.toString()} style={styles.buttonContainer} onPress={() => onPressScore(score)}
hitSlop={{ top: 20, bottom: 40, left: 20, right: 20 }}>
hitSlop={{ top: 20, bottom: 20, left: 20, right: 20 }} activeOpacity={1}>
<View style={styles.button}>
<View style={ score === selectedScore ? styles.selectedCircle : styles.circle} />
</View>
Expand All @@ -34,17 +34,21 @@ const SurveyScoreSelector = ({ onPressScore, selectedScore }: SurveyScoreSelecto

const styles = StyleSheet.create({
line: {
borderWidth: BORDER_WIDTH,
position: 'relative',
top: ICON.XL / 2 + BORDER_WIDTH,
borderWidth: BORDER_WIDTH,
borderColor: GREY[200],
top: ICON.XL / 2 + BORDER_WIDTH,
marginRight: ICON.XL / 2,
marginLeft: ICON.XL / 2,
},
container: {
flexDirection: 'row',
justifyContent: 'space-between',
},
buttonContainer: {
height: ICON.XL,
width: ICON.XL,
alignItems: 'center',
},
button: {
justifyContent: 'center',
Expand Down

0 comments on commit b0d229b

Please sign in to comment.