From a3525e05a25cf8f3db8d0de4796aa0627421c3bb Mon Sep 17 00:00:00 2001 From: florian <> Date: Fri, 8 Mar 2024 12:53:06 +0000 Subject: [PATCH] fix: Fixed title, added banner to home page --- TODO.md | 1 - src/components/Home/index.tsx | 12 +++++++++++- src/ngine/hooks/useEvents.ts | 2 +- src/utils/useProfile.ts | 17 +++++++++++------ 4 files changed, 23 insertions(+), 9 deletions(-) diff --git a/TODO.md b/TODO.md index 1d4f48a..16c539f 100644 --- a/TODO.md +++ b/TODO.md @@ -9,7 +9,6 @@ - move settings dialog to main start screen - replace search icon with nav back button - record demo explaination video -- global can not be accessed any more - different header for multiple tags?? - navigation entry points: - Search (custom hashtags, profile search, content search, community seaarch) diff --git a/src/components/Home/index.tsx b/src/components/Home/index.tsx index 6cdce7c..1e2762a 100644 --- a/src/components/Home/index.tsx +++ b/src/components/Home/index.tsx @@ -5,9 +5,12 @@ import { useGlobalState } from '../../utils/globalState'; import usePeopleLists from '../../utils/useLists'; import { createImgProxyUrl } from '../nostrImageDownload'; import { useState } from 'react'; +import { Helmet } from 'react-helmet'; +import useProfile from '../../utils/useProfile'; const Home = () => { const { nav, currentSettings } = useNav(); + const { title } = useProfile(currentSettings); const [showAdult, setShowAdult] = useState(currentSettings.showAdult || false); const [state] = useGlobalState(); const topicKeys = Object.keys(topics); @@ -15,6 +18,9 @@ const Home = () => { return (