mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-06 00:37:23 +00:00
Consolidate ThemeProvider and AppProvider
This commit is contained in:
7 files changed
+199
-145
No files matched your search
@@ -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("");
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user