1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: remove project mode flag (#3438)

This commit is contained in:
Mateusz Kwasniewski 2023-04-04 13:28:59 +02:00 committed by GitHub
parent 9f0dacfce0
commit 3912b57b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 37 deletions

View File

@ -61,8 +61,7 @@ const ProjectForm: React.FC<IProjectForm> = ({
clearErrors,
}) => {
const { uiConfig } = useUiConfig();
const { projectScopedStickiness, projectMode: projectModeFlag } =
uiConfig.flags;
const { projectScopedStickiness } = uiConfig.flags;
return (
<StyledForm onSubmit={handleSubmit}>
@ -132,40 +131,33 @@ const ProjectForm: React.FC<IProjectForm> = ({
</>
}
/>
<ConditionallyRender
condition={Boolean(projectModeFlag)}
show={
<>
<Box
sx={{
display: 'flex',
alignItems: 'center',
marginBottom: 1,
gap: 1,
}}
>
<p>What is your project collaboration mode?</p>
<CollaborationModeTooltip />
</Box>
<Select
id="project-mode"
value={projectMode}
label="Project collaboration mode"
name="Project collaboration mode"
onChange={e => {
setProjectMode?.(
e.target.value as ProjectMode
);
}}
options={[
{ key: 'open', label: 'open' },
{ key: 'protected', label: 'protected' },
]}
style={{ minWidth: '200px' }}
></Select>
</>
}
/>
<>
<Box
sx={{
display: 'flex',
alignItems: 'center',
marginBottom: 1,
gap: 1,
}}
>
<p>What is your project collaboration mode?</p>
<CollaborationModeTooltip />
</Box>
<Select
id="project-mode"
value={projectMode}
label="Project collaboration mode"
name="Project collaboration mode"
onChange={e => {
setProjectMode?.(e.target.value as ProjectMode);
}}
options={[
{ key: 'open', label: 'open' },
{ key: 'protected', label: 'protected' },
]}
style={{ minWidth: '200px' }}
></Select>
</>
</StyledContainer>
<StyledButtonContainer>

View File

@ -50,7 +50,6 @@ export interface IFlags {
bulkOperations?: boolean;
projectScopedSegments?: boolean;
projectScopedStickiness?: boolean;
projectMode?: boolean;
}
export interface IVersionInfo {