mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-15 01:16:22 +02:00
refactor: remove public signup link feature flag (#2423)
## About the changes Cleanup: remove feature flag. Closes [1-356/remove-feature-flag-from-the-code](https://linear.app/unleash/issue/1-356/remove-feature-flag-from-the-code)
This commit is contained in:
parent
8b057a1466
commit
a191313956
@ -6,19 +6,14 @@ import { ConditionallyRender } from 'component/common/ConditionallyRender/Condit
|
||||
import { ADMIN } from 'component/providers/AccessProvider/permissions';
|
||||
import { AdminAlert } from 'component/common/AdminAlert/AdminAlert';
|
||||
import { InviteLinkBar } from './InviteLinkBar/InviteLinkBar';
|
||||
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
||||
|
||||
const UsersAdmin = () => {
|
||||
const { hasAccess } = useContext(AccessContext);
|
||||
const { uiConfig } = useUiConfig();
|
||||
|
||||
return (
|
||||
<div>
|
||||
<AdminMenu />
|
||||
<ConditionallyRender
|
||||
condition={Boolean(uiConfig?.flags?.publicSignup)}
|
||||
show={<InviteLinkBar />}
|
||||
/>
|
||||
<InviteLinkBar />
|
||||
<ConditionallyRender
|
||||
condition={hasAccess(ADMIN)}
|
||||
show={<UsersList />}
|
||||
|
@ -40,7 +40,6 @@ export interface IFlags {
|
||||
UG?: boolean;
|
||||
ENABLE_DARK_MODE_SUPPORT?: boolean;
|
||||
embedProxyFrontend?: boolean;
|
||||
publicSignup?: boolean;
|
||||
syncSSOGroups?: boolean;
|
||||
changeRequests?: boolean;
|
||||
cloneEnvironment?: boolean;
|
||||
|
@ -73,7 +73,6 @@ exports[`should create default config 1`] = `
|
||||
"cloneEnvironment": false,
|
||||
"embedProxy": false,
|
||||
"embedProxyFrontend": false,
|
||||
"publicSignup": false,
|
||||
"responseTimeWithAppName": false,
|
||||
"syncSSOGroups": false,
|
||||
},
|
||||
@ -87,7 +86,6 @@ exports[`should create default config 1`] = `
|
||||
"cloneEnvironment": false,
|
||||
"embedProxy": false,
|
||||
"embedProxyFrontend": false,
|
||||
"publicSignup": false,
|
||||
"responseTimeWithAppName": false,
|
||||
"syncSSOGroups": false,
|
||||
},
|
||||
|
@ -26,10 +26,6 @@ export const defaultExperimentalOptions = {
|
||||
process.env.UNLEASH_EXPERIMENTAL_BATCH_METRICS,
|
||||
false,
|
||||
),
|
||||
publicSignup: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_PUBLIC_SIGNUP,
|
||||
false,
|
||||
),
|
||||
responseTimeWithAppName: parseEnvVarBoolean(
|
||||
process.env.UNLEASH_EXPERIMENTAL_RESPONSE_TIME_WITH_APP_NAME,
|
||||
false,
|
||||
|
Loading…
Reference in New Issue
Block a user