refactor(navbar): Update footer type definition for clarity and consistency

This commit is contained in:
Nawaz Dhandala 2026-01-09 21:26:44 +00:00
parent f494e0cdaa
commit 82e4beb8d9
No known key found for this signature in database
GPG key ID: 96C5DCA24769DBCA
2 changed files with 7 additions and 11 deletions

View file

@ -12,11 +12,13 @@ export interface MenuSection {
export interface ComponentProps {
children?: ReactElement | Array<ReactElement>;
sections?: MenuSection[];
footer?: {
title: string;
description: string;
link: URL;
};
footer?:
| {
title: string;
description: string;
link: URL;
}
| undefined;
}
const NavBarMenu: FunctionComponent<ComponentProps> = (

View file

@ -108,12 +108,6 @@ const NavBarMenuItem: FunctionComponent<ComponentProps> = (
hoverBg: "hover:bg-emerald-50",
hoverRing: "group-hover:ring-emerald-300",
},
cyan: {
bg: "bg-cyan-50",
ring: "ring-cyan-200",
hoverBg: "hover:bg-cyan-50",
hoverRing: "group-hover:ring-cyan-300",
},
};
const colors: {