From e8cd7e956203fc37bb04d7e8a05acd0fe273dcdd Mon Sep 17 00:00:00 2001 From: Thibault Pouch Date: Tue, 17 Mar 2026 16:43:35 +0100 Subject: [PATCH] refactor: enable conditional rendering of forum and bug report links in Navbar and Footer based on settings --- nest-front/src/components/shared/Footer.tsx | 12 ++++++----- nest-front/src/components/shared/Navbar.tsx | 24 ++++++++++++++------- 2 files changed, 23 insertions(+), 13 deletions(-) diff --git a/nest-front/src/components/shared/Footer.tsx b/nest-front/src/components/shared/Footer.tsx index 124d0b2..d7dea1e 100644 --- a/nest-front/src/components/shared/Footer.tsx +++ b/nest-front/src/components/shared/Footer.tsx @@ -1,7 +1,9 @@ import { Link } from 'react-router-dom'; +import { useSettings } from '../../contexts/SettingsContext'; export function Footer() { const year = new Date().getFullYear(); + const { forumEnabled, bugsEnabled } = useSettings(); return (