From 6e4f44749e8a14c91425dd686ad42d27a52d7da9 Mon Sep 17 00:00:00 2001 From: kvakazyambra Date: Wed, 6 Sep 2023 23:45:12 +0300 Subject: [PATCH] Fix header subnavigation links --- src/components/Nav/Header/Header.tsx | 16 +++---- src/components/Nav/Topics.tsx | 67 +++++++++++++++++----------- 2 files changed, 49 insertions(+), 34 deletions(-) diff --git a/src/components/Nav/Header/Header.tsx b/src/components/Nav/Header/Header.tsx index edb90465..b16f8697 100644 --- a/src/components/Nav/Header/Header.tsx +++ b/src/components/Nav/Header/Header.tsx @@ -274,13 +274,7 @@ export const Header = (props: Props) => { Гид по дискурсу
  • - Частые вопросы -
  • -
  • - Энциклопедия -
  • -
  • - Как поддержать? + Как поддержать?
  • Как помочь? @@ -302,7 +296,7 @@ export const Header = (props: Props) => { > diff --git a/src/components/Nav/Topics.tsx b/src/components/Nav/Topics.tsx index c2e0574e..1e014a5f 100644 --- a/src/components/Nav/Topics.tsx +++ b/src/components/Nav/Topics.tsx @@ -1,36 +1,51 @@ -import { For, Show } from 'solid-js' -import type { Topic } from '../../graphql/types.gen' import { Icon } from '../_shared/Icon' import { useLocalize } from '../../context/localize' import './Topics.scss' -export const NavTopics = (props: { topics: Topic[] }) => { - const { t, lang } = useLocalize() - const tag = (topic: Topic) => - /[ЁА-яё]/.test(topic.title || '') && lang() !== 'ru' ? topic.slug : topic.title - // TODO: something about subtopics +export const NavTopics = () => { + const { t } = useLocalize() + return ( )