From f9128c95151bdc03465da45d3e49b61f8bccc45a Mon Sep 17 00:00:00 2001 From: Janis Meister Date: Mon, 13 Mar 2023 09:02:51 +0100 Subject: [PATCH] add --- components/Nav.jsx | 6 ++-- pages/furnishing.jsx | 66 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 pages/furnishing.jsx diff --git a/components/Nav.jsx b/components/Nav.jsx index a3d4790..95ffbf6 100644 --- a/components/Nav.jsx +++ b/components/Nav.jsx @@ -33,10 +33,10 @@ export default function Nav({ localeTexts }) { {localeTexts?.nav?.surroundings ?? ""} - {localeTexts?.nav?.gallery ?? ""} + {localeTexts?.nav?.furnishing ?? ""} ({ ...doc.data(), id: doc.id })) ?? + {}, + }, + }; +} + +export default function Furnishing({ furnishings, localeTexts }) { + const { locale } = useRouter(); + return ( +
+

{localeTexts?.furnishings?.headline}

+ + {furnishings.map((s, i) => { + { + console.log(locale); + } + return ( +
+

{locale === "en" ? s.title.en : s.title.de}

+
+ {locale +
+ {s.links.map((l, i2) => { + return ( + + {locale === "en" ? l.text.en : l.text.de} + + ); + })} +
+
+
+
+ ); + })} +
+ ); +}