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:
parent
9f0dacfce0
commit
3912b57b09
@ -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>
|
||||
|
@ -50,7 +50,6 @@ export interface IFlags {
|
||||
bulkOperations?: boolean;
|
||||
projectScopedSegments?: boolean;
|
||||
projectScopedStickiness?: boolean;
|
||||
projectMode?: boolean;
|
||||
}
|
||||
|
||||
export interface IVersionInfo {
|
||||
|
Loading…
Reference in New Issue
Block a user