+
{logo}
{title}
@@ -133,7 +142,7 @@ function LongMenu(props: ISideMenuProps) {
}
export function SideMenu(props: ISideMenuProps) {
- const { items, conf } = props;
+ const { items, conf, onClickLogo } = props;
const { fullMode } = conf;
const [hover, setHover] = useState(true);
@@ -141,7 +150,7 @@ export function SideMenu(props: ISideMenuProps) {
const fullModeClass = fullMode ? 'fixed top-0 left-0 right-0' : '';
const hoverClass = hover ? 'w-20' : 'w-64';
- function handleOnMouseOver(e: any) {
+ function handleOnMouseOver(e: React.MouseEvent) {
e.preventDefault();
setHover(!hover);
}
@@ -154,9 +163,9 @@ export function SideMenu(props: ISideMenuProps) {
onMouseLeave={hover ? undefined : handleOnMouseOver}
>
{hover ? (
-
+
) : (
-
+
)}
);