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/Profile.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/Profile.tsx')
| -rw-r--r-- | frontend/src/pages/Profile.tsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx index 63b3c13..48233bf 100644 --- a/frontend/src/pages/Profile.tsx +++ b/frontend/src/pages/Profile.tsx | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | import { Link, useNavigate } from 'react-router-dom'; | 2 | import { Link, 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, DeleteIcon } from '@images/Images'; | 5 | import { SteamIcon, TwitchIcon, YouTubeIcon, PortalIcon, FlagIcon, StatisticsIcon, SortIcon, ThreedotIcon, DownloadIcon, HistoryIcon, DeleteIcon } from '@images/Images'; |
| 5 | import { UserProfile } from '@customTypes/Profile'; | 6 | import { UserProfile } from '@customTypes/Profile'; |
| @@ -109,6 +110,10 @@ const Profile: React.FC<ProfileProps> = ({ profile, token, gameData, onDeleteRec | |||
| 109 | 110 | ||
| 110 | return ( | 111 | return ( |
| 111 | <div> | 112 | <div> |
| 113 | <Helmet> | ||
| 114 | <title>LPHUB | {profile.user_name}</title> | ||
| 115 | <meta name="description" content={profile.user_name} /> | ||
| 116 | </Helmet> | ||
| 112 | {MessageDialogComponent} | 117 | {MessageDialogComponent} |
| 113 | {MessageDialogLoadComponent} | 118 | {MessageDialogLoadComponent} |
| 114 | {ConfirmDialogComponent} | 119 | {ConfirmDialogComponent} |