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