add proptypes, fix logo text animation

This commit is contained in:
Alex Holliday committed 2025-08-01 15:45:43 -07:00
1 parent 2c4c6a5024
commit 035edd92f4
2 files changed
+14 -5

No files matched your search

@@ -3,13 +3,11 @@ import ListItemButton from "@mui/material/ListItemButton";
import ListItemIcon from "@mui/material/ListItemIcon";
import Box from "@mui/material/Box";
import Typography from "@mui/material/Typography";
import { useTheme } from "@emotion/react";
import { useNavigate } from "react-router";
import PropTypes from "prop-types";
const NavItem = ({ item, collapsed, selected, onClick }) => {
const theme = useTheme();
const navigate = useNavigate();
return (
<Tooltip
@@ -86,4 +84,10 @@ const NavItem = ({ item, collapsed, selected, onClick }) => {
);
};
NavItem.propTypes = {
item: PropTypes.object,
collapsed: PropTypes.bool,
selected: PropTypes.bool,
onClick: PropTypes.func,
};
export default NavItem;