mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-11 19:56:44 +00:00
refactor(navbar): Update footer type definition for clarity and consistency
This commit is contained in:
parent
f494e0cdaa
commit
82e4beb8d9
2 changed files with 7 additions and 11 deletions
|
|
@ -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> = (
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue