mirror of
https://github.com/Permissionless-Software-Foundation/bch-dex-taker-v2.git
synced 2026-09-21 16:52:01 -07:00
fix(Nostr Post): Opening up public post on page load
This commit is contained in:
@@ -1,13 +1,15 @@
|
|||||||
/*
|
/*
|
||||||
Component for reading the nostr feeds.
|
Component for reading the nostr feeds.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Global npm libraries
|
// Global npm libraries
|
||||||
import React, { useState, useEffect, useCallback } from 'react'
|
import React, { useState, useEffect, useCallback } from 'react'
|
||||||
import { Container, Nav, Tab, Spinner } from 'react-bootstrap'
|
import { Container, Nav, Tab, Spinner } from 'react-bootstrap'
|
||||||
|
import { RelayPool } from 'nostr'
|
||||||
|
|
||||||
|
// Local libraries
|
||||||
import Feed from './feed'
|
import Feed from './feed'
|
||||||
import Following from './following'
|
import Following from './following'
|
||||||
import { RelayPool } from 'nostr'
|
|
||||||
|
|
||||||
function Feeds (props) {
|
function Feeds (props) {
|
||||||
const { appData } = props
|
const { appData } = props
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
/*
|
/*
|
||||||
Component for posting nostr information.
|
Component for posting nostr information.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Global npm libraries
|
// Global npm libraries
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { Container } from 'react-bootstrap'
|
import { Container } from 'react-bootstrap'
|
||||||
|
|
||||||
|
// Local libraries
|
||||||
import ProfilePost from './profile-post'
|
import ProfilePost from './profile-post'
|
||||||
import PublicPost from './public-post'
|
import PublicPost from './public-post'
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { Relay } from 'nostr-tools/relay'
|
|||||||
import { hexToBytes } from '@noble/hashes/utils' // already an installed dependency
|
import { hexToBytes } from '@noble/hashes/utils' // already an installed dependency
|
||||||
|
|
||||||
function PublicPost (props) {
|
function PublicPost (props) {
|
||||||
const [accordionKey, setAccordionKey] = useState(null)
|
const [accordionKey, setAccordionKey] = useState('0')
|
||||||
const [onFetch, setOnFetch] = useState(false)
|
const [onFetch, setOnFetch] = useState(false)
|
||||||
const { bchWalletState } = props.appData
|
const { bchWalletState } = props.appData
|
||||||
const [formData, setFormData] = useState({
|
const [formData, setFormData] = useState({
|
||||||
|
|||||||
Reference in New Issue
Block a user