Skip to content

Commit 246ffb6

Browse files
authored
Merge pull request #313 from sillsdev:TT-7338-bold-gen
TT-7338 No additional project type for BOLD
2 parents 2888f80 + 4a7918d commit 246ffb6

1 file changed

Lines changed: 11 additions & 6 deletions

File tree

src/renderer/src/components/Team/ProjectDialog/ProjectDialog.tsx

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ import { StyledDialogTitle } from '../../StyledDialogTitle';
2727
import Tags from '../../../control/Tags';
2828
import { AltActionBar } from '../../../components/AltActionBar';
2929
import { initProjectState, IProjectDialog } from './projectDialogTypes';
30-
import {
31-
BOLD_WORKFLOW_PROCESS,
32-
useTeamWorkflowProcess,
33-
} from '../../../crud';
30+
import { BOLD_WORKFLOW_PROCESS, useTeamWorkflowProcess } from '../../../crud';
3431

3532
interface IProps extends IDialog<IProjectDialog> {
3633
nameInUse?: (newName: string) => boolean;
@@ -165,8 +162,16 @@ export function ProjectDialog(props: IProps) {
165162
/>
166163
<ProjectDescription state={state} setState={setState} />
167164
</Box>
168-
<ProjectType type={type} onChange={handleTypeChange} team={team} />
169-
<ProjectStory state={state} setState={setState} />
165+
{teamWorkflow !== BOLD_WORKFLOW_PROCESS && (
166+
<>
167+
<ProjectType
168+
type={type}
169+
onChange={handleTypeChange}
170+
team={team}
171+
/>
172+
<ProjectStory state={state} setState={setState} />
173+
</>
174+
)}
170175
<Stack sx={{ pt: 1, pb: 2 }}>
171176
<Language
172177
{...state}

0 commit comments

Comments
 (0)