mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-04-19 19:01:19 +00:00
Switch back relays, make zapper app window bigger
This commit is contained in:
parent
83cdea0e5d
commit
35a6679023
@ -2,10 +2,13 @@ import React, { useRef, useEffect, useState, useMemo } from 'react';
|
||||
import { OverlayPanel } from 'primereact/overlaypanel';
|
||||
import ZapForm from './ZapForm';
|
||||
import { ProgressSpinner } from 'primereact/progressspinner';
|
||||
import useWindowWidth from '@/hooks/useWindowWidth';
|
||||
|
||||
const ZapDisplay = ({ zapAmount, event, zapsLoading }) => {
|
||||
const op = useRef(null);
|
||||
const [extraLoading, setExtraLoading] = useState(false);
|
||||
const windowWidth = useWindowWidth();
|
||||
const isMobile = windowWidth < 768;
|
||||
|
||||
useMemo(() => {
|
||||
let timeout;
|
||||
@ -28,7 +31,7 @@ const ZapDisplay = ({ zapAmount, event, zapsLoading }) => {
|
||||
)}
|
||||
</span>
|
||||
</span>
|
||||
<OverlayPanel className='w-[40%] h-[40%]' ref={op}>
|
||||
<OverlayPanel className={`${isMobile ? 'w-[90%] h-[90%]' : 'w-[50%] h-[50%]'}`} ref={op}>
|
||||
<ZapForm event={event} />
|
||||
</OverlayPanel>
|
||||
</>
|
||||
|
@ -1,14 +1,14 @@
|
||||
const appConfig = {
|
||||
defaultRelayUrls: [
|
||||
"wss://nos.lol/",
|
||||
"wss://relay.damus.io/",
|
||||
"wss://relay.snort.social/",
|
||||
"wss://relay.nostr.band/",
|
||||
"wss://relay.mutinywallet.com/",
|
||||
"wss://relay.primal.net/",
|
||||
"wss://nostr21.com/",
|
||||
"wss://nostrue.com/",
|
||||
"wss://purplerelay.com/",
|
||||
// "wss://nos.lol/",
|
||||
// "wss://relay.damus.io/",
|
||||
// "wss://relay.snort.social/",
|
||||
// "wss://relay.nostr.band/",
|
||||
// "wss://relay.mutinywallet.com/",
|
||||
// "wss://relay.primal.net/",
|
||||
// "wss://nostr21.com/",
|
||||
// "wss://nostrue.com/",
|
||||
// "wss://purplerelay.com/",
|
||||
"wss://relay.devs.tools/"
|
||||
],
|
||||
authorPubkeys: ["8cb60e215678879cda0bef4d5b3fc1a5c5925d2adb5d8c4fa7b7d03b5f2deaea", "676c02247668d5b18479be3d1a80933044256f3fbd03640a8c234684e641b6d6", "f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741"],
|
||||
|
@ -11,8 +11,8 @@ const readOnlyRelays = ["wss://nostr21.com/", "wss://nostr.wine/", "wss://yestr.
|
||||
export const NDKProvider = ({ children }) => {
|
||||
const [ndk, setNdk] = useState(null);
|
||||
// todo: remove this after testing phase
|
||||
const [userRelays, setUserRelays] = useLocalStorage("userRelays", appConfig.defaultRelayUrls);
|
||||
// const [userRelays, setUserRelays] = useState([...readOnlyRelays, "wss://relay.devs.tools"]);
|
||||
// const [userRelays, setUserRelays] = useLocalStorage("userRelays", appConfig.defaultRelayUrls);
|
||||
const [userRelays, setUserRelays] = useState([...readOnlyRelays, "wss://relay.devs.tools"]);
|
||||
|
||||
const createNDKInstance = (relays) => {
|
||||
const allRelays = [...new Set([...appConfig.defaultRelayUrls, ...relays])];
|
||||
|
Loading…
x
Reference in New Issue
Block a user