From 72441047c33606169fc4d948bdb31c5951a5c9db Mon Sep 17 00:00:00 2001 From: Andrei Dekterev Date: Thu, 9 Jun 2022 17:01:12 +0700 Subject: [PATCH] fix(#2504): Change name of subs to lexic and some styles --- .../components/CancelSubPopup/index.tsx | 8 ++--- .../components/PageSubscriptions/hooks.tsx | 4 +++ .../components/PageSubscriptions/index.tsx | 30 +++++++++++++------ .../components/PageSubscriptions/styled.tsx | 4 +-- src/requests/getUserSubscribes.tsx | 3 ++ 5 files changed, 34 insertions(+), 15 deletions(-) diff --git a/src/features/UserAccount/components/CancelSubPopup/index.tsx b/src/features/UserAccount/components/CancelSubPopup/index.tsx index c0c65f6e..10e2ae82 100644 --- a/src/features/UserAccount/components/CancelSubPopup/index.tsx +++ b/src/features/UserAccount/components/CancelSubPopup/index.tsx @@ -43,8 +43,8 @@ export const CancelSubPopup = (props: Props) => { const { access_to, - name, - option_name, + lexic, + option_sys_name, } = subscribe return ( @@ -69,12 +69,12 @@ export const CancelSubPopup = (props: Props) => { - {option_name} — {name} + {option_sys_name && `${option_sys_name[0].toUpperCase()}${option_sys_name.slice(1, option_sys_name.length)}`} —   - {access_to && format(new Date(access_to), 'dd.MM.yyyy')} + {access_to && format(new Date(access_to), 'dd.MM.yyyy')}