Refactor AppProvider, AppConfig and presetRelays

This commit is contained in:
Alex Gleason committed 2025-06-04 10:20:31 -05:00
1 parent 3ad83cd114
commit 048bf4cc69
8 files changed
+46 -26

No files matched your search

+8 -1
View File
@@ -27,9 +27,16 @@ const defaultConfig: AppConfig = {
relayUrl: "wss://relay.nostr.band",
};
const presetRelays = [
{ url: 'wss://ditto.pub/relay', name: 'Ditto' },
{ url: 'wss://relay.nostr.band', name: 'Nostr.Band' },
{ url: 'wss://relay.damus.io', name: 'Damus' },
{ url: 'wss://relay.primal.net', name: 'Primal' },
];
export function App() {
return (
<AppProvider storageKey="nostr:app-config" defaultConfig={defaultConfig}>
<AppProvider storageKey="nostr:app-config" defaultConfig={defaultConfig} presetRelays={presetRelays}>
<QueryClientProvider client={queryClient}>
<NostrLoginProvider storageKey='nostr:login'>
<NostrProvider>