-
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.
- Loading branch information
1 parent
6589964
commit 26a2e49
Showing
7 changed files
with
120 additions
and
43 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
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,42 @@ | ||
import { IoClose } from "react-icons/io5"; | ||
|
||
interface UploadImageModalProps { | ||
show: boolean; | ||
setShow: React.Dispatch<React.SetStateAction<boolean>>; | ||
modalRef: React.MutableRefObject<HTMLDivElement | null>; | ||
restaurant_id?: string; | ||
} | ||
|
||
const UploadImageModal: React.FC<UploadImageModalProps> = ({ | ||
show, | ||
setShow, | ||
modalRef, | ||
}) => { | ||
return show ? ( | ||
<div className="justify-center items-center flex overflow-x-hidden overflow-y-auto fixed inset-0 z-50 outline-none focus:outline-none"> | ||
<div className="opacity-25 fixed inset-0 z-40 bg-black"></div> | ||
<div className="relative w-1/4 min-w-[400px] my-6 mx-auto z-40"> | ||
<div | ||
className="border-0 rounded-lg shadow-lg relative flex flex-col w-full bg-white outline-none focus:outline-none" | ||
ref={modalRef} | ||
> | ||
<div className="flex items-center justify-between p-2 px-4 border-b border-solid border-slate-200 rounded-t"> | ||
<h3 className="text-lg font-semibold">Create New Review</h3> | ||
<button | ||
className="p-2 ml-auto text-black float-right text-3xl leading-none font-semibold outline-none rounded-full hover:bg-gray-200 focus:outline-none" | ||
onClick={() => setShow(false)} | ||
> | ||
<span className="bg-transparent text-black text-2xl block outline-none focus:outline-none"> | ||
<IoClose size={20} /> | ||
</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
) : ( | ||
<></> | ||
); | ||
}; | ||
|
||
export default UploadImageModal; |
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
File renamed without changes.