From 2640eda5fc88b98b25c0951417c58f5dd6a14edf Mon Sep 17 00:00:00 2001 From: foxxy Date: Tue, 1 Oct 2024 14:30:03 +0300 Subject: [PATCH] MSP-4163 beautify tokenContent --- src/components/TokenContent/index.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/TokenContent/index.tsx b/src/components/TokenContent/index.tsx index ef0d99c..e2bc8fb 100644 --- a/src/components/TokenContent/index.tsx +++ b/src/components/TokenContent/index.tsx @@ -24,10 +24,7 @@ import { import tokensApi from '@services/tokensService.ts' - - -import './tokens.scss'; - +import './tokens.scss' const { FormSelect } = FormComponents const { EmptyData } = Layout @@ -117,7 +114,7 @@ const TokenContent = ({ id }: TokenPropTypes) => { title: 'Токен', dataIndex: 'token', key: 'token', - render: (record) =>
{shortenString(record)}
+ render: (value) =>
{shortenString(value)}
}, { title: 'Дата/Время выпуска', @@ -133,7 +130,6 @@ const TokenContent = ({ id }: TokenPropTypes) => { dataIndex: 'expireTime', key: 'expireTime', render: (value, record) => { - if (value === -1) { return Никогда } @@ -156,7 +152,11 @@ const TokenContent = ({ id }: TokenPropTypes) => { return ( -