Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
benguedj committed Apr 1, 2024
2 parents b3e9b9c + bd3f716 commit 71fd55f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
4 changes: 2 additions & 2 deletions front/app.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable @typescript-eslint/naming-convention */
const APP_VERSION = "1.1.104";
const APP_VERSION_NUM = 104;
const APP_VERSION = "1.1.105";
const APP_VERSION_NUM = 105;

export default {
expo: {
Expand Down
6 changes: 6 additions & 0 deletions front/src/constants/Labels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,12 @@ export default {
description: "",
title: "Dépression post partum, en parler c’est se soigner !",
},
recosante: {
buttonTitle: "Essayer Recosanté",
description: "",
title:
"Une application gratuite pour protéger votre santé et celle de votre famille",
},
title: "Auto-évaluations",
tnd: {
buttonTitle: "Commencer le repérage",
Expand Down
15 changes: 14 additions & 1 deletion front/src/screens/surveys/tabSurveysScreen.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ const TabSurveysScreen: FC = () => {
void RootNavigation.navigate("tndSurvey");
}, []);

const openRecosanteSurvey = useCallback(() => {
const RECOSANTE_WIDGET_SOURCE = "1000j-application";
void LinkingUtils.openWebsite(
`https://recosante.beta.gouv.fr/download?source=${RECOSANTE_WIDGET_SOURCE}`,
false
);
}, []);
const surveysBanner: SurveyBanner[] = [
{
buttonTitle: Labels.surveys.epds.buttonTitle,
Expand All @@ -55,6 +62,12 @@ const TabSurveysScreen: FC = () => {
onPress: openTndSurvey,
title: Labels.surveys.tnd.title,
},
{
buttonTitle: Labels.surveys.recosante.buttonTitle,
description: Labels.surveys.recosante.description,
onPress: openRecosanteSurvey,
title: Labels.surveys.recosante.title,
},
];

return (
Expand Down Expand Up @@ -124,7 +137,7 @@ const styles = StyleSheet.create({
backgroundColor: Colors.primaryBlueLight,
borderLeftColor: Colors.primaryBlueDark,
borderLeftWidth: 3,
marginBottom: Paddings.light,
marginBottom: Paddings.largest,
marginVertical: Paddings.default,
padding: Paddings.default,
},
Expand Down

0 comments on commit 71fd55f

Please sign in to comment.