Skip to content

Commit

Permalink
Merge pull request #6 from AytacMursalzade/NewMenu
Browse files Browse the repository at this point in the history
changed completed
  • Loading branch information
AytacMursalzade authored Feb 8, 2024
2 parents 32284d0 + ea0c1f4 commit 791a7b3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Components/Shopping/Basket.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";

function Basket({ basket, cost }) {
return (
<div className="bg-[#654943] flex flex-col gap-[12px] justify-around text-[#A39583] items-center text-center w-[306px] h-[100vh] overflow-auto">
<div className="bg-[#654943] flex flex-col gap-[12px] justify-around text-[#A39583] items-center text-center w-[650px] min-h-[100vh]">
<b><h1>Basket</h1></b>
{(basket.length === 0 && <b><p>Not found product</p></b>) || null}
{basket.map((item) => (
Expand Down
8 changes: 4 additions & 4 deletions src/Components/Shopping/MainDev.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ function MainDev() {
const [basket, setBasket] = useState([]);
const [cost, setCost] = useState("");
return (
<div>
<div className="w-[100%] ">
<b>
<h1 className="text-center font-extrabold my-[25px] text-[32px] text-[#6C4C47] ">
Shopping Day
</h1>
</b>
<div className="flex overflow-hidden">
<div className="flex w-[80%] py-[15px] px-[2px]">
<div className="flex ">
<div className="flex flex-wrap gap-[12px] px-[2px]">
{products.map((product) => (
<Product
key={products.id}
Expand All @@ -24,7 +24,7 @@ function MainDev() {
/>
))}
</div>
<Basket cost={cost} basket={basket} />
<Basket cost={cost} basket={basket} />
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Shopping/Product.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function Shopping({ product, basket, setBasket }) {
}

return (
<div className=" w-[250px] ">
<div className=" w-[250px] pl-[80px] ">
<div>
<div className="bg-[#A39583] flex flex-col gap-[5px] justify-center items-center ">
<img
Expand Down

0 comments on commit 791a7b3

Please sign in to comment.