Skip to content

Commit a5bbd5c

Browse files
committed
Add Ops Learning route
- Add ops learning to navbar - Remove ignore from tsconfig - Remove ignore from unimported
1 parent 572d218 commit a5bbd5c

File tree

4 files changed

+6
-26
lines changed

4 files changed

+6
-26
lines changed

app/.unimportedrc.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@
22
"entry": ["./src/index.tsx"],
33
"ignorePatterns": ["**/node_modules/**", "build/**", "**/parked/**"],
44
"ignoreUnimported": [
5+
"src/views/CountryNsOverviewCapacity/CountryNsOrganisationalCapacity/index.tsx",
56
"**/*.d.ts",
6-
"**/*.test.*",
7-
"src/views/CountryNsOverviewCapacity/CountryNsOrganisationalCapacity/index.tsx",
8-
"src/views/OperationalLearning/*",
9-
"src/views/OperationalLearning/**/*",
10-
"src/hooks/domain/usePerComponent.ts",
11-
"src/hooks/domain/useSecondarySector.ts"
7+
"**/*.test.*"
128
],
139
"ignoreUnresolved": [
1410
"#assets/content/operational_timeline_title.svg?react",

app/src/App/routes/index.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,6 @@ const resources = customWrapRoute({
752752
visibility: 'anything',
753753
},
754754
});
755-
756-
// TODO: unhide operational learning
757-
/*
758755
const operationalLearning = customWrapRoute({
759756
parent: rootLayout,
760757
path: 'operational-learning',
@@ -768,7 +765,6 @@ const operationalLearning = customWrapRoute({
768765
visibility: 'anything',
769766
},
770767
});
771-
*/
772768

773769
const search = customWrapRoute({
774770
parent: rootLayout,
@@ -1271,8 +1267,7 @@ const wrappedRoutes = {
12711267
perWorkPlanForm,
12721268
threeWProjectDetail,
12731269
termsAndConditions,
1274-
// TODO: unhide operational learning
1275-
// operationalLearning,
1270+
operationalLearning,
12761271
...regionRoutes,
12771272
...countryRoutes,
12781273
...surgeRoutes,

app/src/components/Navbar/index.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,8 @@ function Navbar(props: Props) {
4444
type RespondOptionKey = 'emergencies' | 'early-warning' | 'dref-process' | 'surge';
4545
const [activeRespondOption, setActiveRespondOption] = useState<RespondOptionKey>('emergencies');
4646

47-
// TODO: unhide operational learning
48-
// type LearnOptionKey = 'tools' | 'resources' | 'operational-learning';
49-
type LearnOptionKey = 'tools' | 'resources';
50-
const [activeLearnOption, setActiveLearnOption] = useState<LearnOptionKey>('tools');
47+
type LearnOptionKey = 'tools' | 'resources' | 'operational-learning';
48+
const [activeLearnOption, setActiveLearnOption] = useState<LearnOptionKey>('operational-learning');
5149

5250
return (
5351
<nav className={_cs(styles.navbar, className)}>
@@ -416,14 +414,12 @@ function Navbar(props: Props) {
416414
className={styles.optionList}
417415
contentClassName={styles.optionListContent}
418416
>
419-
{/* TODO: unhide operational learning
420417
<Tab
421418
name="operational-learning"
422419
className={styles.option}
423420
>
424421
{strings.userMenuOperationalLearning}
425422
</Tab>
426-
*/}
427423
<Tab
428424
name="tools"
429425
className={styles.option}
@@ -448,7 +444,6 @@ function Navbar(props: Props) {
448444
</DropdownMenuItem>
449445
</TabList>
450446
<div className={styles.optionBorder} />
451-
{/* TODO: unhide operational learning
452447
<TabPanel
453448
name="operational-learning"
454449
className={styles.optionDetail}
@@ -464,7 +459,6 @@ function Navbar(props: Props) {
464459
{strings.userMenuOperationalLearningDescription}
465460
</div>
466461
</TabPanel>
467-
*/}
468462
<TabPanel
469463
name="tools"
470464
className={styles.optionDetail}

app/tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,5 @@
3232
"noUnusedParameters": true,
3333
"noFallthroughCasesInSwitch": true
3434
},
35-
"include": ["src", "env.ts"],
36-
37-
/* TODO: unhide operational learning */
38-
"exclude": [
39-
"src/views/OperationalLearning/*"
40-
]
35+
"include": ["src", "env.ts"]
4136
}

0 commit comments

Comments
 (0)