From a458c3ace7ec748d62c4c0e6fc0c000b420c4456 Mon Sep 17 00:00:00 2001 From: Igor Shadurin Date: Fri, 15 Dec 2023 13:49:10 +0300 Subject: [PATCH] feat: display text status of invites --- src/components/Invites/Invites.tsx | 15 +++++++-------- src/locales/ch-CH.json | 5 +++++ src/locales/de-DE.json | 5 +++++ src/locales/en-US.json | 5 +++++ src/locales/es-ES.json | 5 +++++ src/locales/fr-FR.json | 5 +++++ src/locales/hu-HU.json | 5 +++++ src/locales/it-IT.json | 5 +++++ src/locales/jp-JP.json | 5 +++++ src/locales/pt-PT.json | 5 +++++ src/locales/rs-RS.json | 5 +++++ src/locales/sl-SI.json | 5 +++++ src/locales/tr-TR.json | 5 +++++ 13 files changed, 67 insertions(+), 8 deletions(-) diff --git a/src/components/Invites/Invites.tsx b/src/components/Invites/Invites.tsx index 5291459e..532c8dac 100644 --- a/src/components/Invites/Invites.tsx +++ b/src/components/Invites/Invites.tsx @@ -14,7 +14,6 @@ import BackImage from '@media/UI/invite/back.png'; import EditImage from '@media/UI/invite/pencil.png'; import SaveImage from '@media/UI/invite/check-mark.png'; import DeleteImage from '@media/UI/invite/delete.png'; -import DollarImage from '@media/UI/invite/dollar-sign.png'; import EmptyImage from '@media/UI/invite/empty.png'; import copy from 'copy-to-clipboard'; import { ConfirmDeleteModal } from '@components/Modals'; @@ -167,11 +166,15 @@ const Invites: FC = ({ } const inviteStatusText = intl.get(InviteStatusText[status]); + const inviteStatusTextShort = intl.get(`${InviteStatusText[status]}_SHORT`); return { inviteStatusClass: classes[status], inviteStatusText: inviteStatusText ? inviteStatusText : intl.get('STATUS_IS_NOT_AVAILABLE'), + inviteStatusTextShort: inviteStatusTextShort + ? inviteStatusTextShort + : intl.get('STATUS_IS_NOT_AVAILABLE_SHORT'), }; }; @@ -287,13 +290,9 @@ const Invites: FC = ({ setInviteAction(invite, InviteMode.Delete) } /> - {/* onTopUpInvite && onTopUpInvite(invite)}*/} - {/*/>*/} + )}