From 42a6bbcf4e6373a67d32322fc495b4154251f0e6 Mon Sep 17 00:00:00 2001 From: Yoan VALLET <ext.sopra.yvallet@grandlyon.com> Date: Thu, 2 Jul 2020 16:44:56 +0200 Subject: [PATCH] feat: chge text color & translate type in feedback --- src/components/ContentComponents/Feedback/FeedbackModal.tsx | 6 +++--- src/styles/components/_feedback.scss | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/ContentComponents/Feedback/FeedbackModal.tsx b/src/components/ContentComponents/Feedback/FeedbackModal.tsx index ec231bf15..fd04583d7 100644 --- a/src/components/ContentComponents/Feedback/FeedbackModal.tsx +++ b/src/components/ContentComponents/Feedback/FeedbackModal.tsx @@ -17,7 +17,7 @@ import OtherOffIcon from 'assets/icons/visu/feedback/other-off.svg' import errorIcon from 'assets/icons/visu/data-nok.svg' import successIcon from 'assets/icons/visu/data-ok.svg' -const FEEDBACK_EMAIL = 'yoan.vallet@soprasteria.com' +const FEEDBACK_EMAIL = 'ecolyo@grandlyon.com' const browser = detect() interface FeedbackModalProps { @@ -73,7 +73,7 @@ const FeedbackModal: React.FC<FeedbackModalProps> = ({ const mailContent = 'Type: ' + - type + + t('feedback.type_' + type) + '\n\nDescription:\n' + description + '\n\nEmail: ' + @@ -84,7 +84,7 @@ const FeedbackModal: React.FC<FeedbackModalProps> = ({ const mailData = { mode: 'from', to: [{ name: 'Support', email: FEEDBACK_EMAIL }], - subject: '[Ecolyo] - Feedbacks - ' + type, + subject: '[Ecolyo] - Feedbacks - ' + t('feedback.type_' + type), parts: [{ type: 'text/plain', body: mailContent }], } try { diff --git a/src/styles/components/_feedback.scss b/src/styles/components/_feedback.scss index 885c18a4d..cbaad1d07 100644 --- a/src/styles/components/_feedback.scss +++ b/src/styles/components/_feedback.scss @@ -16,10 +16,10 @@ display: flex; flex-direction: column; .fb-content-success{ - color: $multi-color; + color: $text-bright; } .fb-content-error{ - color: $red-primary; + color: $text-bright; } .fb-icon { display: flex; -- GitLab