Consolidate ThemeProvider and AppProvider

This commit is contained in:
Alex Gleason committed 2025-06-04 09:42:53 -05:00
1 parent bce7af2e76
commit c3310ab485
7 files changed
+199 -145

No files matched your search

+2 -2
View File
@@ -46,7 +46,7 @@ export function RelaySelector({ className }: RelaySelectorProps) {
const handleAddCustomRelay = (url: string) => {
const normalizedUrl = normalizeRelayUrl(url);
if (normalizedUrl) {
updateConfig("relayUrl", normalizedUrl);
updateConfig(config => ({ ...config, relayUrl: normalizedUrl }));
setOpen(false);
setInputValue("");
}
@@ -130,7 +130,7 @@ export function RelaySelector({ className }: RelaySelectorProps) {
key={option.url}
value={option.url}
onSelect={(currentValue) => {
updateConfig("relayUrl", currentValue);
updateConfig(config => ({ ...config, relayUrl: currentValue }));
setOpen(false);
setInputValue("");
}}