From 747f6a7fccc0fe1a3e4cbec87a8e38faa37cfa09 Mon Sep 17 00:00:00 2001 From: Joseph McCombs Date: Thu, 12 Nov 2020 20:58:52 -0500 Subject: [PATCH] chore: add I18n translations --- components/Cards/SmallCardsCarousel/index.js | 93 ++++++++++--------- .../FormikFields/PaperInputPicker/index.js | 85 +++++++---------- .../PaperInputPicker/index.style.js | 2 +- .../configs/vitals.config.js | 62 ++++++------- modules/i18n/english/en.json | 29 +++++- modules/i18n/spanish/es.json | 26 ++++++ 6 files changed, 171 insertions(+), 126 deletions(-) diff --git a/components/Cards/SmallCardsCarousel/index.js b/components/Cards/SmallCardsCarousel/index.js index 1eb402c0a..8b0026f86 100644 --- a/components/Cards/SmallCardsCarousel/index.js +++ b/components/Cards/SmallCardsCarousel/index.js @@ -33,50 +33,57 @@ import I18n from '../../../modules/i18n'; const SmallCardsCarousel = ({ puenteForms, navigateToNewRecord, setView, surveyee, setUser }) => ( - - {puenteForms.map((form) => ( - { - if (setUser) { - setView('Forms'); - navigateToNewRecord(form.tag, surveyee); - } else { - navigateToNewRecord(form.tag); - } - }} - > - {form.tag === 'id' && ( - - - - + - - - - )} - {form.tag === 'med-eval' && ( - - - - - - - - )} - - ))} - -); + {form.tag === 'env' && ( + + + + + + + + )} + {form.tag === 'med-eval' && ( + + + + + + + + )} + {form.tag === 'vitals' && ( + + + +