fix: update constants.ts barrel export and fix MegaDropdownData type safety
This commit is contained in:
@@ -183,7 +183,7 @@ function HeaderContent() {
|
|||||||
<MegaDropdown
|
<MegaDropdown
|
||||||
key={item.id}
|
key={item.id}
|
||||||
label={item.label}
|
label={item.label}
|
||||||
items={MEGA_DROPDOWN_DATA[item.dropdownKey!]}
|
items={MEGA_DROPDOWN_DATA[item.dropdownKey!] ?? []}
|
||||||
isOpen={openDropdown === item.id}
|
isOpen={openDropdown === item.id}
|
||||||
onToggle={() => setOpenDropdown(openDropdown === item.id ? null : item.id)}
|
onToggle={() => setOpenDropdown(openDropdown === item.id ? null : item.id)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,7 +1,12 @@
|
|||||||
export {
|
export {
|
||||||
COMPANY_INFO,
|
COMPANY_INFO,
|
||||||
NAVIGATION,
|
NAVIGATION,
|
||||||
|
NAVIGATION_V2,
|
||||||
|
MEGA_DROPDOWN_DATA,
|
||||||
type NavigationItem,
|
type NavigationItem,
|
||||||
|
type NavigationItemV2,
|
||||||
|
type MegaDropdownItem,
|
||||||
|
type MegaDropdownData,
|
||||||
STATS,
|
STATS,
|
||||||
type StatItem,
|
type StatItem,
|
||||||
SERVICES,
|
SERVICES,
|
||||||
@@ -10,4 +15,8 @@ export {
|
|||||||
type NewsItem,
|
type NewsItem,
|
||||||
type NewsCategory,
|
type NewsCategory,
|
||||||
CASES,
|
CASES,
|
||||||
|
TEAM_MEMBERS,
|
||||||
|
type TeamMember,
|
||||||
|
METHODOLOGY,
|
||||||
|
type MethodologyPhase,
|
||||||
} from './constants/index';
|
} from './constants/index';
|
||||||
|
|||||||
Reference in New Issue
Block a user