Skip to content

Commit

Permalink
(#5) arrumando problemas de lint
Browse files Browse the repository at this point in the history
Co-authored-by: Sergio Cipriano <sergiosacj@protonmail.com>
  • Loading branch information
emysdias and sergiosacj committed Sep 17, 2021
1 parent 04b57be commit 48a40ec
Show file tree
Hide file tree
Showing 3 changed files with 130 additions and 144 deletions.
11 changes: 5 additions & 6 deletions frontend/src/components/MenuItem/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ import React from 'react';
import { MenuItemContainer } from 'components/MenuItem/styles';

type Props = {
id: number;
// id: number;
image: string;
name: string;
price: string;
discount: number;
// discount: number;
description: string;
};

const MenuItem: React.FC<Props> = ({
id,
// id,
image,
name,
price,
discount,
// discount,
description,
}) => {
// const addItem = ({ addItem } = useContext(ItemContext));
return (
<MenuItemContainer>
<img src={image} alt={name} />
Expand All @@ -30,7 +29,7 @@ const MenuItem: React.FC<Props> = ({
<button
type="button"
onClick={() => {
console.log('addItem here');
null;
}}
>
Adicionar
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/Home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Container } from 'pages/Home/styles';
import NavBar from 'components/NavBar';
import SecondNavBar from 'components/NavBar/SecondNavBar';
import ThirdNavBar from 'components/NavBar/ThirdNavBar';
import FourthNavBar from 'components/NavBar/FourthNavBar';
// import FourthNavBar from 'components/NavBar/FourthNavBar';
import FifthNavBar from 'components/NavBar/FifthNavBar';

const Home: React.FC = () => {
Expand All @@ -32,11 +32,11 @@ const Home: React.FC = () => {
<h4>{theme.type}</h4>

<MenuItem
id={0}
// id={0}
image="https://blog.finamac.com/wp-content/uploads/2019/10/309956-como-oferecer-os-melhores-sabores-de-milkshake-para-os-clientes-1280x640.jpg"
name="Milkshake"
price="16.90"
discount={0}
// discount={0}
description={
'Disponível nos sabores morango, chocolate, oreo e creme de\
avelã.'
Expand Down
Loading

0 comments on commit 48a40ec

Please sign in to comment.