feat: replace static labels with configurable values
This commit is contained in:
committed by
Mathias Schopmans
parent
5ef0f07822
commit
f7e36ddc9d
@@ -11,6 +11,7 @@ import { QuadrantLink } from "@/components/QuadrantLink/QuadrantLink";
|
||||
import {
|
||||
getItem,
|
||||
getItems,
|
||||
getLabel,
|
||||
getQuadrant,
|
||||
sortByFeaturedAndTitle,
|
||||
} from "@/lib/data";
|
||||
@@ -45,7 +46,10 @@ const ItemPage: CustomPage = () => {
|
||||
<h3>{quadrant.title}</h3>
|
||||
<div className={styles.ringAndQuadrant}>
|
||||
<RingBadge ring={item.ring} />
|
||||
<QuadrantLink quadrant={quadrant} label="Quadrant Overview" />
|
||||
<QuadrantLink
|
||||
quadrant={quadrant}
|
||||
label={getLabel("quadrantOverview")}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<ItemList items={relatedItems} activeId={item.id} />
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user