diff --git a/src/components/AppView/AppView.js b/src/components/AppView/AppView.js
index 6fb0006..a00abbe 100644
--- a/src/components/AppView/AppView.js
+++ b/src/components/AppView/AppView.js
@@ -112,7 +112,7 @@ export default function AppView({ setDarkMode }){
- console.log("Clicked!") }/>
+
diff --git a/src/components/ItemTable/ItemTable.js b/src/components/ItemTable/ItemTable.js
index 701aabc..e45dc63 100644
--- a/src/components/ItemTable/ItemTable.js
+++ b/src/components/ItemTable/ItemTable.js
@@ -9,6 +9,7 @@ import { ArrowDownward, ArrowUpward } from "@material-ui/icons";
export default function ItemTable({ data, rowCanBeSelected }) {
+ const [selectedRow, setSelectedRow] = useState({ queue: null, number: null});
const theme = useTheme();
const useStyles = makeStyles({
@@ -127,7 +128,7 @@ export default function ItemTable({ data, rowCanBeSelected }) {
{
history.push(`/${row.original.queue}/${row.original.number}`);
- setSelecetedRow({ queue: row.original.queue, number: row.original.number });
+ setSelectedRow({ queue: row.original.queue, number: row.original.number });
}}
// This functionality should be achieved by using the selected prop and
// overriding the selected class but this applied the secondary color at 0.08% opacity.
@@ -159,6 +160,8 @@ ItemTable.propTypes = {
};
ItemTable.defaultProps = {
+ /** The items to display in the table. */
"items": [],
+ /** A state variable determining whether a row can be selected or not. */
"rowCanBeSelected": true
};