Skip to content

Commit

Permalink
fix(beck): pourcentage émotion avant/après
Browse files Browse the repository at this point in the history
  • Loading branch information
tangimds committed Dec 22, 2021
1 parent 7b4976d commit 82da71f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/scenes/exercise/exercise-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {StyleSheet, Text, View, TouchableOpacity} from 'react-native';
import {parseISO, differenceInDays} from 'date-fns';

import Icon from '../../components/Icon';
import {colors} from '../../utils/colors';

export default ({patientState, date, navigation}) => {
const data = patientState?.becks;
Expand Down Expand Up @@ -46,6 +47,11 @@ export default ({patientState, date, navigation}) => {
<Text>
{beck?.mainEmotion} -{' '}
{`${beck?.mainEmotionIntensity * 10}%`}
{beck?.mainEmotionIntensityNuanced ? (
<Text style={styles.mainEmotionIntensityNuancedStyle}>
{' →'} {beck?.mainEmotionIntensityNuanced * 10}%
</Text>
) : null}
</Text>
{beck?.where ? (
<Text style={styles.place}>{beck?.where}</Text>
Expand Down Expand Up @@ -100,4 +106,8 @@ const styles = StyleSheet.create({
fontStyle: 'italic',
color: '#26387C',
},
mainEmotionIntensityNuancedStyle: {
color: colors.LIGHT_BLUE,
fontWeight: 'bold',
},
});

0 comments on commit 82da71f

Please sign in to comment.