1
0
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:
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, 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>

View File

@ -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 {