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,9 +131,6 @@ const ProjectForm: React.FC<IProjectForm> = ({
|
|||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
<ConditionallyRender
|
|
||||||
condition={Boolean(projectModeFlag)}
|
|
||||||
show={
|
|
||||||
<>
|
<>
|
||||||
<Box
|
<Box
|
||||||
sx={{
|
sx={{
|
||||||
@ -153,9 +149,7 @@ const ProjectForm: React.FC<IProjectForm> = ({
|
|||||||
label="Project collaboration mode"
|
label="Project collaboration mode"
|
||||||
name="Project collaboration mode"
|
name="Project collaboration mode"
|
||||||
onChange={e => {
|
onChange={e => {
|
||||||
setProjectMode?.(
|
setProjectMode?.(e.target.value as ProjectMode);
|
||||||
e.target.value as ProjectMode
|
|
||||||
);
|
|
||||||
}}
|
}}
|
||||||
options={[
|
options={[
|
||||||
{ key: 'open', label: 'open' },
|
{ key: 'open', label: 'open' },
|
||||||
@ -164,8 +158,6 @@ const ProjectForm: React.FC<IProjectForm> = ({
|
|||||||
style={{ minWidth: '200px' }}
|
style={{ minWidth: '200px' }}
|
||||||
></Select>
|
></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