-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: Ib3da46b9b68f05af495f582f2365c677bd2fe614
- Loading branch information
1 parent
b5d28e8
commit 1c73906
Showing
2 changed files
with
48 additions
and
0 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
46 changes: 46 additions & 0 deletions
46
frontend/src/pages/Bucket/BucketDetail/Comment/ShowMoreButton.tsx
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,46 @@ | ||
import { Menu, Transition } from '@headlessui/react' | ||
import { AiOutlineMore } from 'react-icons/ai' | ||
|
||
const ShowMoreButton = () => { | ||
const handleClickModifyButton = () => { | ||
// Todo : 수정 모드로 변경 | ||
} | ||
const handleClickDeleteButton = () => { | ||
// Todo : 삭제 요청 Api 적용 | ||
} | ||
return ( | ||
<div> | ||
<Menu as="div" className="absolute top-0 right-0"> | ||
<Menu.Button> | ||
<AiOutlineMore color="#767676" /> | ||
</Menu.Button> | ||
<Transition | ||
enter="transition duration-100 ease-out" | ||
enterFrom="transform scale-95 opacity-0" | ||
enterTo="transform scale-100 opacity-100" | ||
leave="transition duration-75 ease-out" | ||
leaveFrom="transform scale-100 opacity-100" | ||
leaveTo="transform scale-95 opacity-0" | ||
> | ||
<Menu.Items | ||
as="ul" | ||
className="absolute z-10 mt-2 origin-top-right translate-x-1/2 bg-white divide-gray-100 rounded-sm shadow-lg right-1/2 ring-1 ring-black ring-opacity-5 focus:outline-none" | ||
> | ||
<Menu.Item as="li"> | ||
<button onClick={handleClickModifyButton} className="w-12 p-1 text-sm text-point1"> | ||
수정 | ||
</button> | ||
</Menu.Item> | ||
<Menu.Item as="li"> | ||
<button onClick={handleClickDeleteButton} className="w-12 p-1 text-sm text-point1"> | ||
삭제 | ||
</button> | ||
</Menu.Item> | ||
</Menu.Items> | ||
</Transition> | ||
</Menu> | ||
</div> | ||
) | ||
} | ||
|
||
export default ShowMoreButton |