"not followed by anyone you follow"
Some checks are pending
continuous-integration/drone/push Build is running

This commit is contained in:
Martti Malmi 2023-11-30 15:12:06 +02:00
parent d4b343a18c
commit 07db21d4d0
6 changed files with 12 additions and 3 deletions

View File

@ -49,6 +49,11 @@ export default function FollowedBy({ pubkey }: { pubkey: string }) {
)} )}
</div> </div>
)} )}
{followedByFriends.size === 0 && (
<div className="text-gray-light">
<FormattedMessage defaultMessage="Not followed by anyone you follow" id="IgsWFG" />
</div>
)}
</div> </div>
); );
} }

View File

@ -69,7 +69,7 @@ export function ProfileCard({
truncate={250} truncate={250}
/> />
<UserWebsiteLink user={user} /> <UserWebsiteLink user={user} />
<FollowedBy pubkey={pubkey} /> {myPublicKey && <FollowedBy pubkey={pubkey} />}
</div> </div>
</ControlledMenu> </ControlledMenu>
); );

View File

@ -15,7 +15,7 @@ export default function RightColumn() {
<SearchBox /> <SearchBox />
</div> </div>
<div className="overflow-y-auto hide-scrollbar"> <div className="overflow-y-auto hide-scrollbar">
<div className="rounded-lg mt-8 text-neutral-500"> <div className="rounded-lg mt-8 text-gray-light">
<div className="font-bold text-lg"> <div className="font-bold text-lg">
<FormattedMessage defaultMessage="Trending notes" id="6k7xfM" /> <FormattedMessage defaultMessage="Trending notes" id="6k7xfM" />
</div> </div>

View File

@ -346,7 +346,7 @@ export default function ProfilePage({ id: propId, state }: ProfilePageProps) {
<div className="details-wrapper w-max"> <div className="details-wrapper w-max">
{username()} {username()}
{bio()} {bio()}
{user?.pubkey && <FollowedBy pubkey={user.pubkey} />} {user?.pubkey && loginPubKey && <FollowedBy pubkey={user.pubkey} />}
</div> </div>
); );
} }

View File

@ -294,6 +294,9 @@
"9WRlF4": { "9WRlF4": {
"defaultMessage": "Send" "defaultMessage": "Send"
}, },
"9X9Q2t": {
"defaultMessage": "Not followed by anyone you follow"
},
"9kSari": { "9kSari": {
"defaultMessage": "Retry publishing" "defaultMessage": "Retry publishing"
}, },

View File

@ -97,6 +97,7 @@
"9HU8vw": "Reply", "9HU8vw": "Reply",
"9SvQep": "Follows {n}", "9SvQep": "Follows {n}",
"9WRlF4": "Send", "9WRlF4": "Send",
"9X9Q2t": "Not followed by anyone you follow",
"9kSari": "Retry publishing", "9kSari": "Retry publishing",
"9pMqYs": "Nostr Address", "9pMqYs": "Nostr Address",
"9wO4wJ": "Lightning Invoice", "9wO4wJ": "Lightning Invoice",