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,
"zapPool": true
},
"signUp": {
"moderation": true
},
"eventLinkPrefix": "nevent",
"profileLinkPrefix": "nprofile",
"defaultRelays": {

View File

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

View File

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

View File

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