Skip to content

Commit e64342a

Browse files
committed
import projectTypeOptions in NewTutorial from config file
1 parent b781f09 commit e64342a

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

manager-dashboard/app/Base/configs/projectTypes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const developmentProjectTypeOptions: {
2525
{ value: PROJECT_TYPE_BUILD_AREA, label: 'Build Area' },
2626
{ value: PROJECT_TYPE_FOOTPRINT, label: 'Footprint' },
2727
{ value: PROJECT_TYPE_CHANGE_DETECTION, label: 'Change Detection' },
28-
// { value: PROJECT_TYPE_COMPLETENESS, label: 'Completeness' },
28+
{ value: PROJECT_TYPE_COMPLETENESS, label: 'Completeness' },
2929
];
3030

3131
const projectTypeOptions = PROJECT_CONFIG_NAME === 'development' ? developmentProjectTypeOptions : defaultProjectTypeOptions;

manager-dashboard/app/views/NewTutorial/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ import {
5555
tutorialFormSchema,
5656
TutorialFormType,
5757
PartialTutorialFormType,
58-
projectTypeOptions,
5958
} from './utils';
6059
import styles from './styles.css';
6160

61+
import projectTypeOptions from '#base/configs/projectTypes';
62+
6263
const defaultTutorialFormValue: PartialTutorialFormType = {
6364
projectType: PROJECT_TYPE_BUILD_AREA,
6465
zoomLevel: 18,

manager-dashboard/app/views/NewTutorial/utils.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,10 @@ import {
1717
getNoMoreThanNCharacterCondition,
1818
ProjectType,
1919
PROJECT_TYPE_BUILD_AREA,
20-
PROJECT_TYPE_FOOTPRINT,
2120
PROJECT_TYPE_CHANGE_DETECTION,
2221
PROJECT_TYPE_COMPLETENESS,
2322
} from '#utils/common';
2423

25-
export const projectTypeOptions: {
26-
value: ProjectType;
27-
label: string;
28-
}[] = [
29-
{ value: PROJECT_TYPE_BUILD_AREA, label: 'Build Area' },
30-
{ value: PROJECT_TYPE_FOOTPRINT, label: 'Footprint' },
31-
{ value: PROJECT_TYPE_CHANGE_DETECTION, label: 'Change Detection' },
32-
{ value: PROJECT_TYPE_COMPLETENESS, label: 'Completeness' },
33-
];
34-
3524
// FIXME: include here
3625
export interface TutorialFormType {
3726
lookFor: string;

0 commit comments

Comments
 (0)