@@ -9,14 +9,20 @@ import {
99 Tabs ,
1010} from '@ifrc-go/ui' ;
1111import { useTranslation } from '@ifrc-go/ui/hooks' ;
12- import { _cs } from '@togglecorp/fujs' ;
12+ import {
13+ _cs ,
14+ isTruthyString ,
15+ } from '@togglecorp/fujs' ;
1316
1417import goLogo from '#assets/icons/go-logo-2020.svg' ;
1518import KeywordSearchSelectInput from '#components/domain/KeywordSearchSelectInput' ;
1619import DropdownMenuItem from '#components/DropdownMenuItem' ;
1720import Link from '#components/Link' ;
1821import NavigationTab from '#components/NavigationTab' ;
19- import { environment } from '#config' ;
22+ import {
23+ environment ,
24+ sdtUrl ,
25+ } from '#config' ;
2026import useAuth from '#hooks/domain/useAuth' ;
2127
2228import AuthenticatedUserDropdown from './AuthenticatedUserDropdown' ;
@@ -441,68 +447,94 @@ function Navbar(props: Props) {
441447 name = "operational-learning"
442448 className = { styles . optionDetail }
443449 >
444- < DropdownMenuItem
445- type = "link"
446- to = "operationalLearning"
447- variant = "tertiary"
448- >
449- { strings . userMenuOperationalLearning }
450- </ DropdownMenuItem >
451- < div className = { styles . description } >
452- { strings . userMenuOperationalLearningDescription }
450+ < div className = { styles . menuItemWithDescription } >
451+ < DropdownMenuItem
452+ type = "link"
453+ to = "operationalLearning"
454+ variant = "tertiary"
455+ >
456+ { strings . userMenuOperationalLearning }
457+ </ DropdownMenuItem >
458+ < div className = { styles . description } >
459+ { strings . userMenuOperationalLearningDescription }
460+ </ div >
453461 </ div >
454462 </ TabPanel >
455463 < TabPanel
456464 name = "tools"
457465 className = { styles . optionDetail }
458466 >
459- < DropdownMenuItem
460- type = "link"
461- to = "surgeOperationalToolbox"
462- variant = "tertiary"
463- >
464- { strings . userMenuOperationalToolboxItem }
465- </ DropdownMenuItem >
466- < div className = { styles . description } >
467- { strings . userMenuOperationalToolboxItemDescription }
467+ < div className = { styles . menuItemWithDescription } >
468+ < DropdownMenuItem
469+ type = "link"
470+ to = "surgeOperationalToolbox"
471+ variant = "tertiary"
472+ >
473+ { strings . userMenuOperationalToolboxItem }
474+ </ DropdownMenuItem >
475+ < div className = { styles . description } >
476+ { strings . userMenuOperationalToolboxItemDescription }
477+ </ div >
468478 </ div >
479+ { isTruthyString ( sdtUrl ) && (
480+ < div className = { styles . menuItemWithDescription } >
481+ < DropdownMenuItem
482+ type = "link"
483+ external
484+ href = { sdtUrl }
485+ variant = "tertiary"
486+ withLinkIcon
487+ >
488+ { strings . userMenuSurveyDesignToolItem }
489+ </ DropdownMenuItem >
490+ < div className = { styles . description } >
491+ { strings . userMenuSurveyDesignToolItemDescription }
492+ </ div >
493+ </ div >
494+ ) }
469495 </ TabPanel >
470496 < TabPanel
471497 name = "resources"
472498 className = { styles . optionDetail }
473499 >
474- < DropdownMenuItem
475- type = "link"
476- to = "surgeCatalogueLayout"
477- variant = "tertiary"
478- state = { { earlyWarning : true } }
479- >
480- { strings . userMenuCatalogueSurgeServicesItem }
481- </ DropdownMenuItem >
482- < div className = { styles . description } >
483- { strings . userMenuCatalogueSurgeServicesItem }
500+ < div className = { styles . menuItemWithDescription } >
501+ < DropdownMenuItem
502+ type = "link"
503+ to = "surgeCatalogueLayout"
504+ variant = "tertiary"
505+ state = { { earlyWarning : true } }
506+ >
507+ { strings . userMenuCatalogueSurgeServicesItem }
508+ </ DropdownMenuItem >
509+ < div className = { styles . description } >
510+ { strings . userMenuCatalogueSurgeServicesItem }
511+ </ div >
484512 </ div >
485- < DropdownMenuItem
486- type = "link"
487- to = "preparednessGlobalCatalogue"
488- variant = "tertiary"
489- state = { { earlyWarning : true } }
490- >
491- { strings . userMenuPERCatalogueItem }
492- </ DropdownMenuItem >
493- < div className = { styles . description } >
494- { strings . userMenuPERCatalogueItemDescription }
513+ < div className = { styles . menuItemWithDescription } >
514+ < DropdownMenuItem
515+ type = "link"
516+ to = "preparednessGlobalCatalogue"
517+ variant = "tertiary"
518+ state = { { earlyWarning : true } }
519+ >
520+ { strings . userMenuPERCatalogueItem }
521+ </ DropdownMenuItem >
522+ < div className = { styles . description } >
523+ { strings . userMenuPERCatalogueItemDescription }
524+ </ div >
495525 </ div >
496- < DropdownMenuItem
497- type = "link"
498- to = "resources"
499- variant = "tertiary"
500- state = { { earlyWarning : true } }
501- >
502- { strings . userMenuGoResourcesItem }
503- </ DropdownMenuItem >
504- < div className = { styles . description } >
505- { strings . userMenuGoResourcesItemDescription }
526+ < div className = { styles . menuItemWithDescription } >
527+ < DropdownMenuItem
528+ type = "link"
529+ to = "resources"
530+ variant = "tertiary"
531+ state = { { earlyWarning : true } }
532+ >
533+ { strings . userMenuGoResourcesItem }
534+ </ DropdownMenuItem >
535+ < div className = { styles . description } >
536+ { strings . userMenuGoResourcesItemDescription }
537+ </ div >
506538 </ div >
507539 </ TabPanel >
508540 </ Tabs >
0 commit comments