fix: 🐛
This commit is contained in:
@@ -69,9 +69,9 @@ function RelayUrls({ urls }: { urls: string[] }) {
|
|||||||
if (!urls) return null
|
if (!urls) return null
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="pl-8 space-y-1">
|
<div className="pl-1 space-y-1">
|
||||||
{urls.map((url) => (
|
{urls.map((url) => (
|
||||||
<div key={url} className="flex items-center gap-2">
|
<div key={url} className="flex items-center gap-3">
|
||||||
<RelayIcon url={url} className="w-4 h-4" iconSize={10} />
|
<RelayIcon url={url} className="w-4 h-4" iconSize={10} />
|
||||||
<div className="text-muted-foreground text-sm truncate">{url}</div>
|
<div className="text-muted-foreground text-sm truncate">{url}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ type TNostrContext = {
|
|||||||
relayList: TRelayList | null
|
relayList: TRelayList | null
|
||||||
followListEvent?: Event
|
followListEvent?: Event
|
||||||
muteListEvent?: Event
|
muteListEvent?: Event
|
||||||
favoriteRelaysEvent?: Event
|
favoriteRelaysEvent: Event | null
|
||||||
account: TAccountPointer | null
|
account: TAccountPointer | null
|
||||||
accounts: TAccountPointer[]
|
accounts: TAccountPointer[]
|
||||||
nsec: string | null
|
nsec: string | null
|
||||||
@@ -82,7 +82,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
|
|||||||
const [relayList, setRelayList] = useState<TRelayList | null>(null)
|
const [relayList, setRelayList] = useState<TRelayList | null>(null)
|
||||||
const [followListEvent, setFollowListEvent] = useState<Event | undefined>(undefined)
|
const [followListEvent, setFollowListEvent] = useState<Event | undefined>(undefined)
|
||||||
const [muteListEvent, setMuteListEvent] = useState<Event | undefined>(undefined)
|
const [muteListEvent, setMuteListEvent] = useState<Event | undefined>(undefined)
|
||||||
const [favoriteRelaysEvent, setFavoriteRelaysEvent] = useState<Event | undefined>(undefined)
|
const [favoriteRelaysEvent, setFavoriteRelaysEvent] = useState<Event | null>(null)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const init = async () => {
|
const init = async () => {
|
||||||
@@ -117,6 +117,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
|
|||||||
setProfile(null)
|
setProfile(null)
|
||||||
setProfileEvent(null)
|
setProfileEvent(null)
|
||||||
setNsec(null)
|
setNsec(null)
|
||||||
|
setFavoriteRelaysEvent(null)
|
||||||
if (!account) {
|
if (!account) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user