-
Notifications
You must be signed in to change notification settings - Fork 1
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 #379 from beezSSG/dev
#deploy dev -> main 운영 배포 04-19 10:40
- Loading branch information
Showing
47 changed files
with
2,409 additions
and
1,753 deletions.
There are no files selected for viewing
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,14 @@ | ||
import { useEffect } from 'react'; | ||
import { useLocation } from 'react-router-dom'; | ||
|
||
function ScrollToTop() { | ||
const { pathname } = useLocation(); | ||
|
||
useEffect(() => { | ||
window.scrollTo(0, 0); | ||
}, [pathname]); | ||
|
||
return null; | ||
} | ||
|
||
export default ScrollToTop; |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { useState } from "react"; | ||
import { Modal, Button } from "antd"; | ||
import axios from "axios"; | ||
|
||
export default function PickCheckModal({ getPickup, group }) { | ||
|
||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
const onToggleModal = () => { | ||
setIsOpen((prev) => !prev); | ||
}; | ||
|
||
// customerName / date | ||
function confrimHandle() { | ||
// const params = { "id": group[0].customerId, "date":group[0].date }; | ||
const params = { "date":group[0].date }; | ||
console.log(params); | ||
axios | ||
.post("ceo/deletepickup", null, { params: params }) | ||
.then((resp) => { | ||
getPickup("",0); | ||
|
||
console.log(resp); | ||
}) | ||
.catch((error) => { | ||
// 오류가 발생했을 때의 처리 | ||
console.error("error"); | ||
}); | ||
onToggleModal(); | ||
} | ||
|
||
return ( | ||
<> | ||
<button | ||
type="button" | ||
onClick={onToggleModal} | ||
className="bg-sub-yellow rounded-xl p-2 font-bold hover:bg-sub-orange" | ||
> | ||
확인하기 | ||
</button> | ||
|
||
{isOpen && | ||
<Modal | ||
open={true} | ||
centered={true} | ||
footer={null} | ||
onCancel={onToggleModal} | ||
> | ||
{/* 여기에 모달내부에 보여줄 디자인을 작성 */} | ||
<Button key="submit" onClick={confrimHandle}> | ||
<h1 className="text-lg font-bold">승인 확인되었습니다</h1> | ||
</Button> | ||
</Modal> | ||
} | ||
</> | ||
); | ||
} |
Oops, something went wrong.