mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02: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,
|
clearErrors,
|
||||||
}) => {
|
}) => {
|
||||||
const { uiConfig } = useUiConfig();
|
const { uiConfig } = useUiConfig();
|
||||||
const { projectScopedStickiness, projectMode: projectModeFlag } =
|
const { projectScopedStickiness } = uiConfig.flags;
|
||||||
uiConfig.flags;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<StyledForm onSubmit={handleSubmit}>
|
<StyledForm onSubmit={handleSubmit}>
|
||||||
@ -132,40 +131,33 @@ const ProjectForm: React.FC<IProjectForm> = ({
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<ConditionallyRender
|
<>
|
||||||
condition={Boolean(projectModeFlag)}
|
<Box
|
||||||
show={
|
sx={{
|
||||||
<>
|
display: 'flex',
|
||||||
<Box
|
alignItems: 'center',
|
||||||
sx={{
|
marginBottom: 1,
|
||||||
display: 'flex',
|
gap: 1,
|
||||||
alignItems: 'center',
|
}}
|
||||||
marginBottom: 1,
|
>
|
||||||
gap: 1,
|
<p>What is your project collaboration mode?</p>
|
||||||
}}
|
<CollaborationModeTooltip />
|
||||||
>
|
</Box>
|
||||||
<p>What is your project collaboration mode?</p>
|
<Select
|
||||||
<CollaborationModeTooltip />
|
id="project-mode"
|
||||||
</Box>
|
value={projectMode}
|
||||||
<Select
|
label="Project collaboration mode"
|
||||||
id="project-mode"
|
name="Project collaboration mode"
|
||||||
value={projectMode}
|
onChange={e => {
|
||||||
label="Project collaboration mode"
|
setProjectMode?.(e.target.value as ProjectMode);
|
||||||
name="Project collaboration mode"
|
}}
|
||||||
onChange={e => {
|
options={[
|
||||||
setProjectMode?.(
|
{ key: 'open', label: 'open' },
|
||||||
e.target.value as ProjectMode
|
{ key: 'protected', label: 'protected' },
|
||||||
);
|
]}
|
||||||
}}
|
style={{ minWidth: '200px' }}
|
||||||
options={[
|
></Select>
|
||||||
{ key: 'open', label: 'open' },
|
</>
|
||||||
{ key: 'protected', label: 'protected' },
|
|
||||||
]}
|
|
||||||
style={{ minWidth: '200px' }}
|
|
||||||
></Select>
|
|
||||||
</>
|
|
||||||
}
|
|
||||||
/>
|
|
||||||
</StyledContainer>
|
</StyledContainer>
|
||||||
|
|
||||||
<StyledButtonContainer>
|
<StyledButtonContainer>
|
||||||
|
@ -50,7 +50,6 @@ export interface IFlags {
|
|||||||
bulkOperations?: boolean;
|
bulkOperations?: boolean;
|
||||||
projectScopedSegments?: boolean;
|
projectScopedSegments?: boolean;
|
||||||
projectScopedStickiness?: boolean;
|
projectScopedStickiness?: boolean;
|
||||||
projectMode?: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface IVersionInfo {
|
export interface IVersionInfo {
|
||||||
|
Loading…
Reference in New Issue
Block a user