diff options
| author | Arda Serdar Pektezol <1669855+pektezol@users.noreply.github.com> | 2025-01-30 14:43:17 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-30 14:43:17 +0300 |
| commit | 681f7d3ba097cd8d204ff3ac4dae01432d323e5b (patch) | |
| tree | 8578439ebb74d6cefc2e07177689a40ed6b15464 /frontend/src/pages/User.tsx | |
| parent | wr: finale 2 - 0 portals (#258) (diff) | |
| download | lphub-681f7d3ba097cd8d204ff3ac4dae01432d323e5b.tar.gz lphub-681f7d3ba097cd8d204ff3ac4dae01432d323e5b.tar.bz2 lphub-681f7d3ba097cd8d204ff3ac4dae01432d323e5b.zip | |
feat/frontend: dynamic title and meta descriptions (#261)
Diffstat (limited to 'frontend/src/pages/User.tsx')
| -rw-r--r-- | frontend/src/pages/User.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/src/pages/User.tsx b/frontend/src/pages/User.tsx index 938dbd5..d43c0c6 100644 --- a/frontend/src/pages/User.tsx +++ b/frontend/src/pages/User.tsx | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link, useLocation, useNavigate } from 'react-router-dom'; | 2 | import { Link, useLocation, useNavigate } from 'react-router-dom'; |
| 3 | import { Helmet } from 'react-helmet'; | ||
| 3 | 4 | ||
| 4 | import { SteamIcon, TwitchIcon, YouTubeIcon, PortalIcon, FlagIcon, StatisticsIcon, SortIcon, ThreedotIcon, DownloadIcon, HistoryIcon } from '@images/Images'; | 5 | import { SteamIcon, TwitchIcon, YouTubeIcon, PortalIcon, FlagIcon, StatisticsIcon, SortIcon, ThreedotIcon, DownloadIcon, HistoryIcon } from '@images/Images'; |
| 5 | import { UserProfile } from '@customTypes/Profile'; | 6 | import { UserProfile } from '@customTypes/Profile'; |
| @@ -92,6 +93,10 @@ const User: React.FC<UserProps> = ({ token, profile, gameData }) => { | |||
| 92 | 93 | ||
| 93 | return ( | 94 | return ( |
| 94 | <main> | 95 | <main> |
| 96 | <Helmet> | ||
| 97 | <title>LPHUB | {user.user_name}</title> | ||
| 98 | <meta name="description" content={user.user_name} /> | ||
| 99 | </Helmet> | ||
| 95 | {MessageDialogComponent} | 100 | {MessageDialogComponent} |
| 96 | <section id='section1' className='profile'> | 101 | <section id='section1' className='profile'> |
| 97 | <div> | 102 | <div> |