-
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 #26 from marina-yhm/test
Feat: Home완성 및 Audio 구현
- Loading branch information
Showing
28 changed files
with
1,034 additions
and
515 deletions.
There are no files selected for viewing
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,20 @@ | ||
import { atom } from "recoil"; | ||
|
||
export const orders = atom( | ||
{ | ||
key: "orders", // 전역적으로 고유한 값 | ||
default: { | ||
id: 0, //db 인덱스 | ||
orderNum: 0, // 그날의 그가게의 주문번호 | ||
pickUp: "", | ||
foodies: [ | ||
{ | ||
name: "", | ||
count: 0, | ||
options: [""], | ||
}, | ||
], | ||
phone: "", // 고객의 전화번호 | ||
time: "", // 주문시간 | ||
payment: "", | ||
price: 0, | ||
}, | ||
} // 초깃값 | ||
); | ||
export const ordercnt = atom({ | ||
key: "ordercnt", | ||
default: { | ||
pending: 0, | ||
progress: 0, | ||
complete: 0, | ||
}, | ||
}); | ||
|
||
export const selectStatus = atom({ | ||
key: "selectStatus", | ||
default: "null", | ||
}); | ||
|
||
export const selectOrder = atom({ | ||
key: "selectOrder", | ||
default: null, | ||
}); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import VeryMp3 from "../../../assets/Very.mp3"; | ||
|
||
const AudioPlayer = () => { | ||
const audio = new Audio(VeryMp3); | ||
audio.play().catch((error) => { | ||
// Autoplay was prevented, handle it here | ||
console.error("Autoplay prevented:", error); | ||
}); | ||
}; | ||
|
||
export default AudioPlayer; |
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,53 @@ | ||
import React from "react"; | ||
import { Button, Col, Row } from "react-bootstrap"; | ||
|
||
const pendingButton = ({ handleRefuseModal, handleReceiveModal }) => { | ||
return ( | ||
<Row> | ||
<Col> | ||
<div className="receipt-btn__wrapper"> | ||
<Button | ||
name="Reject" | ||
onClick={handleRefuseModal} | ||
style={{ | ||
width: "8.75rem", | ||
height: "2.8125rem", | ||
border: "2px solid", | ||
borderRadius: "1.5625rem", | ||
bordercolor: "#DADADA", | ||
backgroundColor: "#F5F5F5", | ||
fontFamily: "SemiBold", | ||
fontSize: "1.375rem", | ||
color: "#838383", | ||
justifyContent: "center", | ||
}} | ||
> | ||
거부 | ||
</Button> | ||
</div> | ||
</Col> | ||
<Col> | ||
<div className="receipt-btn__wrapper"> | ||
<Button | ||
name="Accept" | ||
onClick={handleReceiveModal} | ||
style={{ | ||
width: "8.75rem", | ||
height: "2.8125rem", | ||
border: "2px solid", | ||
borderRadius: "1.5625rem", | ||
backgroundColor: "#D82356", | ||
fontFamily: "SemiBold", | ||
fontSize: "1.375rem", | ||
color: "#FFFFFF", | ||
}} | ||
> | ||
접수 | ||
</Button> | ||
</div> | ||
</Col> | ||
</Row> | ||
); | ||
}; | ||
|
||
export default pendingButton; |
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.