hide sign-up/moderation in iris

This commit is contained in:
Martti Malmi 2023-11-28 11:52:20 +02:00
parent 398ab46e42
commit 79e303f097
4 changed files with 10 additions and 1 deletions

View File

@ -18,6 +18,9 @@
"deck": true, "deck": true,
"zapPool": true "zapPool": true
}, },
"signUp": {
"moderation": true
},
"eventLinkPrefix": "nevent", "eventLinkPrefix": "nevent",
"profileLinkPrefix": "nprofile", "profileLinkPrefix": "nprofile",
"defaultRelays": { "defaultRelays": {

View File

@ -18,6 +18,9 @@
"deck": true, "deck": true,
"zapPool": true "zapPool": true
}, },
"signUp": {
"moderation": false
},
"eventLinkPrefix": "note", "eventLinkPrefix": "note",
"profileLinkPrefix": "npub", "profileLinkPrefix": "npub",
"defaultRelays": { "defaultRelays": {

View File

@ -59,6 +59,9 @@ declare const CONFIG: {
deck: boolean; deck: boolean;
zapPool: boolean; zapPool: boolean;
}; };
signUp: {
moderation: boolean;
};
eventLinkPrefix: NostrPrefix; eventLinkPrefix: NostrPrefix;
profileLinkPrefix: NostrPrefix; profileLinkPrefix: NostrPrefix;
defaultRelays: Record<string, RelaySettings>; defaultRelays: Record<string, RelaySettings>;

View File

@ -32,7 +32,7 @@ export function Discover() {
<AsyncButton <AsyncButton
className="primary" className="primary"
onClick={() => onClick={() =>
navigate("/login/sign-up/moderation", { navigate(CONFIG.signUp.moderation ? "/login/sign-up/moderation" : "/", {
state, state,
}) })
}> }>