-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from readyvery/test
배포 전 최종
- Loading branch information
Showing
22 changed files
with
572 additions
and
218 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
.Dropdown { | ||
color: #4f4f4f; | ||
font-family: Pretendard; | ||
font-size: 1.125rem; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 100%; /* 1.125rem */ | ||
|
||
position: absolute; | ||
/* left: calc((100vw - 8.875rem) * 0.275); */ | ||
top: 10rem; | ||
left: 17.14375rem; | ||
/* left: 0; */ | ||
display: flex; | ||
flex-direction: column; | ||
/* width: 17.1875rem; */ | ||
width: 8.0625rem; | ||
height: 3.41669rem; | ||
border-radius: 0 0 0.625rem 0.625rem; | ||
z-index: 0; | ||
overflow-y: auto; | ||
overflow-x: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import "./Dropdown.css"; | ||
function Dropdown({ onClickViewer }) { | ||
const onClick = (view) => { | ||
onClickViewer(view); | ||
console.log(view); | ||
}; | ||
return ( | ||
<> | ||
<span className="Dropdown-box" onClick={() => onClick("All")}> | ||
전체보기 | ||
</span> | ||
<span className="Dropdown-box" onClick={() => onClick("PickUp")}> | ||
픽업대기 | ||
</span> | ||
<span className="Dropdown-box" onClick={() => onClick("Complete")}> | ||
픽업완료 | ||
</span> | ||
</> | ||
); | ||
} | ||
|
||
export default Dropdown; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import React from "react"; | ||
|
||
const PickUpOrderBox = ({ onSelect, order, selectedOrderId }) => { | ||
const { orderNum, time, pickUp, price } = order; | ||
const isSelected = order.idx === selectedOrderId; | ||
|
||
const onClickHandler = () => { | ||
onSelect(isSelected ? null : order); | ||
}; | ||
return ( | ||
<> | ||
<div | ||
className={"Order-content__box"} | ||
onClick={onClickHandler} | ||
style={{ | ||
background: isSelected ? "rgba(216, 35, 86, 0.15)" : "#D9D9D9", | ||
}} | ||
> | ||
<span className="Order-content__span">{orderNum} </span> | ||
<span className="Order-content__span"> | ||
<div>{time.split("T")[0].replaceAll("-", ".")}</div> | ||
<div>{time.split("T")[1].split(".")[0]}</div> | ||
</span> | ||
<span className="Order-content__span"> | ||
{pickUp === 1 ? "픽업" : "매장"} | ||
</span> | ||
<span className="Order-content__span"> | ||
{price.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}원 | ||
</span> | ||
<span className="Order-content__span"> </span> | ||
</div> | ||
</> | ||
); | ||
}; | ||
|
||
export default PickUpOrderBox; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.