-
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 branch 'dev' into fix/functional-test
- Loading branch information
Showing
35 changed files
with
554 additions
and
466 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
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,7 @@ | ||
import { httpClient } from "@/api/axios"; | ||
import { API_END_POINT } from "@/constants/api"; | ||
|
||
export const useGetAddressDetail = async (auctionId: string) => { | ||
const response = await httpClient.get(`${API_END_POINT.AUCTIONS}/${auctionId}?type=simple`); | ||
return response.data; | ||
} |
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,33 @@ | ||
import { LuPencil } from "react-icons/lu"; | ||
import { BsTrash } from "react-icons/bs"; | ||
import { RefObject } from "react"; | ||
|
||
interface Props { | ||
fileInputRef: RefObject<HTMLInputElement>; | ||
deleteImage: () => void; | ||
setOnMenu: (item: boolean) => void; | ||
} | ||
|
||
const MenuAccordion = ({ fileInputRef, deleteImage, setOnMenu }: Props) => { | ||
return ( | ||
<div className='absolute left-[-27px] w-52 h-22 bg-white shadow-lg rounded-md z-50 border shadow-slate-200'> | ||
<div onClick={() => { | ||
fileInputRef.current?.click(); | ||
setOnMenu(false) | ||
}} className="flex items-center gap-5 w-full text-gray-700 hover:bg-gray-200 border-b"> | ||
<button className='px-4 py-2 ml-4 text-lg font-bold'> | ||
사진 수정하기 | ||
</button> | ||
<LuPencil size={20} /> | ||
</div> | ||
<div onClick={deleteImage} className="flex items-center gap-5 w-full text-red-600 hover:bg-red-100"> | ||
<button className='px-4 py-2 ml-4 text-lg text-left font-bold'> | ||
사진 삭제하기 | ||
</button> | ||
<BsTrash size={20} /> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MenuAccordion |
Oops, something went wrong.