From af564474643b06a2f8483264ab670bffab9f85a0 Mon Sep 17 00:00:00 2001 From: canove Date: Thu, 14 Jan 2021 21:36:03 -0300 Subject: [PATCH] improvement: add translation to new components --- frontend/src/components/QueueSelect/index.js | 9 +++++---- frontend/src/components/TicketsManager/index.js | 2 +- .../src/components/TicketsQueueSelect/index.js | 3 ++- frontend/src/translate/languages/en.js | 11 +++++++++++ frontend/src/translate/languages/es.js | 15 +++++++++++++++ frontend/src/translate/languages/pt.js | 15 +++++++++++++++ 6 files changed, 49 insertions(+), 6 deletions(-) diff --git a/frontend/src/components/QueueSelect/index.js b/frontend/src/components/QueueSelect/index.js index 22b0529..b80164e 100644 --- a/frontend/src/components/QueueSelect/index.js +++ b/frontend/src/components/QueueSelect/index.js @@ -7,6 +7,7 @@ import Select from "@material-ui/core/Select"; import Chip from "@material-ui/core/Chip"; import toastError from "../../errors/toastError"; import api from "../../services/api"; +import { i18n } from "../../translate/i18n"; const useStyles = makeStyles(theme => ({ chips: { @@ -33,17 +34,17 @@ const QueueSelect = ({ selectedQueueIds, onChange }) => { })(); }, []); - const handleChange = event => { - onChange(event.target.value); + const handleChange = e => { + onChange(e.target.value); }; return (
- Filas + {i18n.t("queueSelect.inputLabel")}