Skip to content

Commit

Permalink
moneyspentsincebeginning
Browse files Browse the repository at this point in the history
  • Loading branch information
laurestph committed May 12, 2022
1 parent 949239f commit 46d3839
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions src/scenes/Gains/MyGains.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import OnBoardingGain from './OnBoardingGain';
import { getDaysForFeed, getDailyDoses, getDrinksState } from '../ConsoFollowUp/consoDuck';
import { daysWithGoalNoDrinkState, drinksByWeekState } from './recoil';


const MyGains = ({ days, dailyDoses }) => {
const navigation = useNavigation();

Expand Down Expand Up @@ -81,7 +82,7 @@ const MyGains = ({ days, dailyDoses }) => {
</TopContainer>
<TextContainer>
<TextForm>
{!isOnboarded && (
{isOnboarded && (
<TextStyled>
Depuis le<TextStyled color="#DE285E"> {beginDate}</TextStyled>
</TextStyled>
Expand All @@ -94,7 +95,7 @@ const MyGains = ({ days, dailyDoses }) => {
</Categories>
<TextContainer>
<TextForm>
{!isOnboarded && (
{isOnboarded && (
<TextStyled>
Sur la semaine en cours depuis<TextStyled color="#DE285E"> {beginDay}</TextStyled>
</TextStyled>
Expand Down
6 changes: 3 additions & 3 deletions src/scenes/Gains/MyGoal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const MyGoal = () => {
navigation.navigate('GOAL');
};

const ToEstimation = () => {
const toEstimation = () => {
navigation.navigate('ESTIMATION');
};

Expand Down Expand Up @@ -57,7 +57,7 @@ const MyGoal = () => {
</MyGoalSubContainerInside>
</MyGoalSubContainer>
<ModifyContainer>
<ButtonTouchable onPress={ToGoal}>
<ButtonTouchable onPress={toGoal}>
<TextModify>
<TextStyled>Modifier l'objectif</TextStyled>
</TextModify>
Expand All @@ -77,7 +77,7 @@ const MyGoal = () => {
</MyGoalSubContainerInside>
</MyGoalSubContainer>
<ModifyContainer>
<ButtonTouchable onPress={ToEstimation}>
<ButtonTouchable onPress={toEstimation}>
<TextModify>
<TextStyled>Modifier l'estimation</TextStyled>
</TextModify>
Expand Down

0 comments on commit 46d3839

Please sign in to comment.