From 681f7d3ba097cd8d204ff3ac4dae01432d323e5b Mon Sep 17 00:00:00 2001 From: Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> Date: Thu, 30 Jan 2025 14:43:17 +0300 Subject: feat/frontend: dynamic title and meta descriptions (#261) --- frontend/src/pages/Maps.tsx | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) (limited to 'frontend/src/pages/Maps.tsx') diff --git a/frontend/src/pages/Maps.tsx b/frontend/src/pages/Maps.tsx index f73e8d2..fb13563 100644 --- a/frontend/src/pages/Maps.tsx +++ b/frontend/src/pages/Maps.tsx @@ -1,5 +1,6 @@ import React from 'react'; import { Link, useLocation } from 'react-router-dom'; +import { Helmet } from 'react-helmet'; import { PortalIcon, FlagIcon, ChatIcon } from '@images/Images'; import Summary from '@components/Summary'; @@ -53,26 +54,32 @@ const Maps: React.FC = ({ token, isModerator }) => { if (!mapSummaryData) { // loading placeholder return ( -
-
-
- -
-
- -
- - - -
- -
-
+ <> +
+
+
+ +
+
+ +
+ + + +
+ +
+
+ ); } return ( <> + + LPHUB | {mapSummaryData.map.map_name} + + {isModerator && }
-- cgit v1.2.3