feat: replace static labels with configurable values

This commit is contained in:
Mathias Schopmans
2024-03-04 13:34:47 +01:00
committed by Mathias Schopmans
parent 5ef0f07822
commit f7e36ddc9d
13 changed files with 52 additions and 177 deletions

View File

@@ -5,11 +5,12 @@ import { useCallback, useMemo } from "react";
import { Filter } from "@/components/Filter/Filter";
import { ItemList } from "@/components/ItemList/ItemList";
import { getItems } from "@/lib/data";
import { getItems, getLabel } from "@/lib/data";
import { formatTitle } from "@/lib/format";
import { CustomPage } from "@/pages/_app";
const Overview: CustomPage = () => {
const title = getLabel("pageOverview");
const router = useRouter();
const ring = router.query.ring as string | undefined;
const query = (router.query.query as string) || "";
@@ -65,10 +66,10 @@ const Overview: CustomPage = () => {
return (
<>
<Head>
<title>{formatTitle("Technologies Overview")}</title>
<title>{formatTitle(title)}</title>
</Head>
<h1>Technologies Overview</h1>
<h1>{title}</h1>
<Filter
query={query}
ring={ring}