diff --git a/client/src/components/Modals/RepostCard.tsx b/client/src/components/Modals/RepostCard.tsx index c679132..645f03e 100644 --- a/client/src/components/Modals/RepostCard.tsx +++ b/client/src/components/Modals/RepostCard.tsx @@ -28,7 +28,7 @@ const RepostCard = ({ // Define your callback function for subGlobalFeed const onEvent = (event: NostrEvent, relay: string) => { - if (event.kind === 0 && event.pubkey === repostedEvent.pubkey) { + if (event.kind === 0 && event.pubkey === repostedEvent.pubkey && metadata == null) { setMetadata(getMetadata(event)) } }; diff --git a/client/src/components/Settings.tsx b/client/src/components/Settings.tsx index 8a430de..c297c39 100644 --- a/client/src/components/Settings.tsx +++ b/client/src/components/Settings.tsx @@ -1,5 +1,6 @@ import React, { useState } from 'react'; import { CpuChipIcon } from '@heroicons/react/24/outline'; +import { useNavigate } from 'react-router-dom'; type TestResponse = { timeTaken: string; @@ -13,6 +14,8 @@ const Settings = () => { const [powServer, setPowServer] = useState(localStorage.getItem('powserver') || ''); const [testDiff, setTestDiff] = useState('21') const [testResult, setTestResult] = useState() + const [noteLink, setNoteLink] = useState(''); + const navigate = useNavigate(); const handleSubmit = (e: React.FormEvent) => { e.preventDefault(); @@ -136,7 +139,32 @@ const Settings = () => { Save Settings - +
+

Open Note

+
{e.preventDefault(); navigate(`/thread/${noteLink}`);}}> +
+
+ + setNoteLink(e.target.value)} + className="w-full px-3 py-2 border rounded-md bg-black" + /> +
+
+ +
+

About