-
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.
Browse files
Browse the repository at this point in the history
Feat: 관리의 채팅도 제대로된 프로필로 보이도록 추가
- Loading branch information
Showing
7 changed files
with
52 additions
and
18 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
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,30 @@ | ||
import React from 'react'; | ||
import styled from '@emotion/styled'; | ||
|
||
interface CustomContextMenuProps { | ||
x: number; | ||
y: number; | ||
} | ||
|
||
const CustomContextMenu = ({ x, y }: CustomContextMenuProps) => { | ||
return ( | ||
<ContextMenu style={{ top: y, left: x }}> | ||
<ul> | ||
<li>메뉴 항목 1</li> | ||
<li>메뉴 항목 2</li> | ||
{/* 추가적인 메뉴 항목들 */} | ||
</ul> | ||
</ContextMenu> | ||
); | ||
}; | ||
|
||
export default CustomContextMenu; | ||
|
||
const ContextMenu = styled.div` | ||
position: absolute; | ||
background-color: #ffffff; | ||
border: 1px solid #ccc; | ||
padding: 5px 10px; | ||
z-index: 1000; | ||
color: black; | ||
`; |