Skip to content

Commit

Permalink
remove more unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-m committed Sep 29, 2023
1 parent f3c852c commit 06c1f59
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions app/src/App.test.tsx

This file was deleted.

10 changes: 5 additions & 5 deletions app/src/admin/dishList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const DishData = ({ origDishList }) => {
const [query, setQuery] = useState("");
const [headerChecked, setHeaderChecked] = useState(false);
const [selectedList, setSelectedList] = useState(Array(dishList.length).fill(false));
const [selectedCount, setSelectedCount] = useState(0);
const [selectedCount, setSelectedCount] = useState(0); // eslint-disable-line @typescript-eslint/no-unused-vars
const [shownDishList, setShownDishList] = useState(dishList);
const [dishTypeFilter, setDishTypeFilter] = useState({ "All": false, "Mug": false, "Dish": false });
const [dishFilterClick, setDishFilterClick] = useState(false);
Expand Down Expand Up @@ -106,7 +106,7 @@ const DishData = ({ origDishList }) => {
}, [dishStatusFilter, dishTypeFilter])
///
///
const handleDishStatusClick = () => {
const handleDishStatusClick = () => { // eslint-disable-line @typescript-eslint/no-unused-vars
setDishStatusClick(!dishStatusClick);
}
const handleAllStatus = () => {
Expand Down Expand Up @@ -174,7 +174,7 @@ const DishData = ({ origDishList }) => {
}
return dishes.filter(dish => dish.id.includes(query));
}
const searchBarHandleChange = (value) => {
const searchBarHandleChange = (value) => { // eslint-disable-line @typescript-eslint/no-unused-vars
setQuery(value);
setShownDishList(getSearchedDishes(query, dishList));
}
Expand Down Expand Up @@ -307,7 +307,7 @@ const DishData = ({ origDishList }) => {
</StyledDishDataLayout>
)
}
const TransactionHistory = () => {
/* const TransactionHistory = () => {
return (
<div>
<div className='dishDashboard-main-title'>
Expand All @@ -322,6 +322,6 @@ const TransactionHistory = () => {
const DishDashboard = () => {
}
} */

export default DishData;
Empty file removed app/src/admin/styledEmail.tsx
Empty file.
Empty file removed app/src/admin/styledUsers.tsx
Empty file.
1 change: 0 additions & 1 deletion app/src/routes/borrow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ export default () => {
return false;
}
setConfirm(false);
const user = currentUser?.id || null;

axios
.post(
Expand Down

0 comments on commit 06c1f59

Please sign in to comment.