diff --git a/src/components/ItemTableAppBar/ItemTableAppBar.js b/src/components/ItemTableAppBar/ItemTableAppBar.js index 2517ac9..44dffd6 100644 --- a/src/components/ItemTableAppBar/ItemTableAppBar.js +++ b/src/components/ItemTableAppBar/ItemTableAppBar.js @@ -1,4 +1,5 @@ import React from "react"; +import PropTypes from 'prop-types' import {makeStyles, Tooltip, Typography, AppBar, Toolbar, IconButton, Zoom} from "@material-ui/core" import DarkModeIcon from '@material-ui/icons/Brightness4'; import LightModeIcon from '@material-ui/icons/Brightness7'; @@ -39,4 +40,17 @@ export default function ItemTableAppBar(props){ ); -} \ No newline at end of file +}; + +ItemTableAppBar.propTypes = { + /** The title of the app bar. */ + "title": PropTypes.string, + /** Function to toggle darkMode. */ + "setDarkMode": PropTypes.func.isRequired, + /** State variable for darkMode */ + "darkMode": PropTypes.bool.isRequired +}; + +ItemTableAppBar.defaultProps = { + "title": "" +}; \ No newline at end of file