From 71a5f8fa8dbab5ea4c002edc5e87833be7c7b7f9 Mon Sep 17 00:00:00 2001 From: Igor Lobanov Date: Thu, 29 Sep 2022 13:50:48 +0200 Subject: [PATCH] lint fixes --- src/components/Nav/Topics.tsx | 9 +++++---- src/components/Root.tsx | 2 +- src/components/Views/FourOuFour.tsx | 2 +- src/stores/zine/authors.ts | 3 +-- src/stores/zine/reactions.ts | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/Nav/Topics.tsx b/src/components/Nav/Topics.tsx index 93ede4d7..14750cf9 100644 --- a/src/components/Nav/Topics.tsx +++ b/src/components/Nav/Topics.tsx @@ -6,7 +6,8 @@ import { t } from '../../utils/intl' import { locale } from '../../stores/ui' export const NavTopics = (props: { topics: Topic[] }) => { - const tag = (t: Topic) => (/[ЁА-яё]/.test(t.title || '') && locale() !== 'ru' ? t.slug : t.title) + const tag = (topic: Topic) => + /[ЁА-яё]/.test(topic.title || '') && locale() !== 'ru' ? topic.slug : topic.title // TODO: something about subtopics return ( @@ -14,10 +15,10 @@ export const NavTopics = (props: { topics: Topic[] }) => {