Skip to content

Commit

Permalink
fixed type bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
elenavolpato committed Jul 31, 2023
1 parent fcd39d3 commit 1bea2f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/HeaderBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default function HeaderBar(props: Props) {
width: "auto",
}));

const SearchIconWrapper = styled("div")(({ theme }) => ({
const SearchIconWrapper = styled("div")(() => ({
height: "100%",
aspectRatio: 1,
position: "absolute",
Expand Down
4 changes: 2 additions & 2 deletions src/components/RenderFoods.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { FoodList } from "../types/food";
import Item from "./Item";
import { Box, Stack } from "@mui/material";
import { Stack } from "@mui/material";
import { FunctionComponent } from "react";

interface RenderFoodProps {
Expand All @@ -14,7 +14,7 @@ interface RenderFoodProps {
//render the grid of foods
const RenderFoods:FunctionComponent<RenderFoodProps> = (props:RenderFoodProps) => {
const foodList = props.foodList
const foodItems = foodList.map((item, key) => {
const foodItems = foodList.map((item ) => {
return (
<Item {...item} />
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/SideBarList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
Divider
} from "@mui/material";

export default function SideBarList(props) {
export default function SideBarList(props: any) {
return (
<Stack
height="100%"
Expand Down

0 comments on commit 1bea2f5

Please sign in to comment.