From 862377b9292d05be72c89f61ba182d56056f757f Mon Sep 17 00:00:00 2001 From: Daniel Gonzalez Date: Thu, 10 Jul 2025 19:02:01 -0400 Subject: [PATCH] feat(nostr): Added Nostr account following --- .../nostr/content-creators/content-card.js | 32 ++-- .../content-creators/content-creators-list.js | 49 +++++- .../nostr/content-creators/follow-btn.js | 142 ++++++++++++++++++ 3 files changed, 205 insertions(+), 18 deletions(-) create mode 100644 src/components/app-body/nostr/content-creators/follow-btn.js diff --git a/src/components/app-body/nostr/content-creators/content-card.js b/src/components/app-body/nostr/content-creators/content-card.js index 496e0dc..4e54310 100644 --- a/src/components/app-body/nostr/content-creators/content-card.js +++ b/src/components/app-body/nostr/content-creators/content-card.js @@ -6,12 +6,13 @@ import React, { useState, useEffect } from 'react' import { Card } from 'react-bootstrap' import Jdenticon from '@chris.troutner/react-jdenticon' import CopyOnClick from '../../bch-wallet/copy-on-click.js' +import FollowBtn from './follow-btn.js' import { RelayPool } from 'nostr' function ContentCard (props) { const [profile, setProfile] = useState([]) const [loaded, setLoaded] = useState(false) - const { creator } = props + const { creator, followList, refreshFollowList } = props useEffect(() => { const loadProfile = async () => { @@ -103,13 +104,14 @@ function ContentCard (props) { {/* Action Buttons */}
- + + + )} + {!onFetch && isFollowing && ( + + )} + + ) +} + +export default FollowBtn