diff --git a/src/components/app-body/nostr/feeds/index.js b/src/components/app-body/nostr/feeds/index.js index 9cd50c9..e01c6dc 100644 --- a/src/components/app-body/nostr/feeds/index.js +++ b/src/components/app-body/nostr/feeds/index.js @@ -1,13 +1,15 @@ /* -Component for reading the nostr feeds. + Component for reading the nostr feeds. */ // Global npm libraries import React, { useState, useEffect, useCallback } from 'react' import { Container, Nav, Tab, Spinner } from 'react-bootstrap' +import { RelayPool } from 'nostr' + +// Local libraries import Feed from './feed' import Following from './following' -import { RelayPool } from 'nostr' function Feeds (props) { const { appData } = props diff --git a/src/components/app-body/nostr/nostr-post/index.js.js b/src/components/app-body/nostr/nostr-post/index.js.js index dca4d1e..c16cc94 100644 --- a/src/components/app-body/nostr/nostr-post/index.js.js +++ b/src/components/app-body/nostr/nostr-post/index.js.js @@ -1,10 +1,12 @@ /* -Component for posting nostr information. + Component for posting nostr information. */ // Global npm libraries import React from 'react' import { Container } from 'react-bootstrap' + +// Local libraries import ProfilePost from './profile-post' import PublicPost from './public-post' diff --git a/src/components/app-body/nostr/nostr-post/public-post.js b/src/components/app-body/nostr/nostr-post/public-post.js index 7abd4c4..ec92d49 100644 --- a/src/components/app-body/nostr/nostr-post/public-post.js +++ b/src/components/app-body/nostr/nostr-post/public-post.js @@ -11,7 +11,7 @@ import { Relay } from 'nostr-tools/relay' import { hexToBytes } from '@noble/hashes/utils' // already an installed dependency function PublicPost (props) { - const [accordionKey, setAccordionKey] = useState(null) + const [accordionKey, setAccordionKey] = useState('0') const [onFetch, setOnFetch] = useState(false) const { bchWalletState } = props.appData const [formData, setFormData] = useState({