From 48b497fec5fdc8b92ed0cac26c48e505b2f2c0c4 Mon Sep 17 00:00:00 2001 From: Anton Vikulov Date: Tue, 16 Jan 2024 19:24:50 +0500 Subject: [PATCH] fix(UpdatedAtDate): fix title --- src/components/UpdatedAtDate/UpdatedAtDate.scss | 4 +--- src/components/UpdatedAtDate/UpdatedAtDate.tsx | 3 +-- src/i18n/en.json | 2 +- src/i18n/ru.json | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/components/UpdatedAtDate/UpdatedAtDate.scss b/src/components/UpdatedAtDate/UpdatedAtDate.scss index 568e436b..f1e0e15f 100644 --- a/src/components/UpdatedAtDate/UpdatedAtDate.scss +++ b/src/components/UpdatedAtDate/UpdatedAtDate.scss @@ -4,7 +4,5 @@ display: flex; margin: 0 0 32px; - &__title { - @include contributors-text(); - } + @include contributors-text(); } diff --git a/src/components/UpdatedAtDate/UpdatedAtDate.tsx b/src/components/UpdatedAtDate/UpdatedAtDate.tsx index 5ab462d1..682cb956 100644 --- a/src/components/UpdatedAtDate/UpdatedAtDate.tsx +++ b/src/components/UpdatedAtDate/UpdatedAtDate.tsx @@ -24,8 +24,7 @@ const UpdatedAtDate: React.FC = ({updatedAt}) => { return (
-
{t('title')}
- {updatedAtFormatted} + {t('title')} {updatedAtFormatted}
); }; diff --git a/src/i18n/en.json b/src/i18n/en.json index b9271bab..92244c5a 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -115,6 +115,6 @@ "prev": "Previous page" }, "updated-at-date": { - "label-updated-at": "Updated at" + "title": "Updated at" } } diff --git a/src/i18n/ru.json b/src/i18n/ru.json index 9f3a5c93..fefa9d35 100644 --- a/src/i18n/ru.json +++ b/src/i18n/ru.json @@ -115,6 +115,6 @@ "prev": "Предыдущая страница" }, "updated-at-date": { - "label-updated-at": "Обновлено" + "title": "Обновлено" } }