From b9672f940d4822dc3ee92ca263bd5c92e077373f Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 18 Oct 2024 14:49:01 -0500 Subject: [PATCH] Can only create new message on nostr feed --- src/components/feeds/messages/CommunityMessage.js | 6 +++--- src/pages/about.js | 2 +- src/pages/feed.js | 8 +++++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/feeds/messages/CommunityMessage.js b/src/components/feeds/messages/CommunityMessage.js index 7f5e4f5..027ee1b 100644 --- a/src/components/feeds/messages/CommunityMessage.js +++ b/src/components/feeds/messages/CommunityMessage.js @@ -24,12 +24,12 @@ const headerTemplate = (options, windowWidth, platform, id) => {
768 ? `View in ${platform}` : null} + label={windowWidth > 768 ? `View ${platform === 'nostr' ? 'on' : 'in'} ${platform}` : null} icon="pi pi-external-link" outlined size="small" onClick={() => window.open(getPlatformLink(platform, id), '_blank')} - tooltip={windowWidth < 768 ? `View in ${platform}` : null} + tooltip={windowWidth < 768 ? `View ${platform === 'nostr' ? 'on' : 'in'} ${platform}` : null} tooltipOptions={{ position: 'left' }} />
@@ -157,4 +157,4 @@ const getPlatformIcon = (platform) => { } }; -export default CommunityMessage; \ No newline at end of file +export default CommunityMessage; diff --git a/src/pages/about.js b/src/pages/about.js index c122367..995bf62 100644 --- a/src/pages/about.js +++ b/src/pages/about.js @@ -87,7 +87,7 @@ const AboutPage = () => {
-

:

+

Feeds:

All of the current PlebDevs Community channels.

  • Nostr: Public plebdevs nostr chat (Read / Write)
    * this is the only feed that you can write to from the plebdevs platform currently.
  • diff --git a/src/pages/feed.js b/src/pages/feed.js index e2a66e9..0be8b0a 100644 --- a/src/pages/feed.js +++ b/src/pages/feed.js @@ -78,9 +78,11 @@ const Feed = () => { />
- + {selectedTopic === 'nostr' && ( + + )}