fix: polish mobile menu titles
This commit is contained in:
@@ -2,6 +2,7 @@ import { useEffect, useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { getJSON, itemsOrEmpty, readJSONCache, type Category } from "../../api";
|
||||
import { CategoryIcon } from "../../components/CategoryIcon";
|
||||
import { useSetPageTitle } from "../../components/PageTitleContext";
|
||||
import { SectionHeader } from "../../components/SectionHeader";
|
||||
import { Skeleton } from "../../components/Skeleton";
|
||||
import { langQuery, useI18n } from "../../i18n";
|
||||
@@ -32,6 +33,7 @@ function figmaCategoryRank(category: Category): number {
|
||||
|
||||
export function CategoriesPage() {
|
||||
const { t, lang } = useI18n();
|
||||
useSetPageTitle(t("categories"));
|
||||
const [cats, setCats] = useState<Category[]>([]);
|
||||
const [err, setErr] = useState<string | null>(null);
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { getJSON, itemsOrEmpty, readJSONCache, type Category } from "../../api";
|
||||
import { useSetPageTitle } from "../../components/PageTitleContext";
|
||||
import { RecommendedCard } from "../../components/RecommendedCard";
|
||||
import { SectionHeader } from "../../components/SectionHeader";
|
||||
import { langQuery, useI18n } from "../../i18n";
|
||||
@@ -12,6 +13,7 @@ import {
|
||||
|
||||
export function OfficialRecommendationsPage() {
|
||||
const { t, lang } = useI18n();
|
||||
useSetPageTitle(t("official"));
|
||||
const [items, setItems] = useState<PostBackedResource[]>([]);
|
||||
const [err, setErr] = useState<string | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user