Skip to content

Commit

Permalink
feat: PopUp에 id props 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
n-ryu committed Dec 8, 2022
1 parent db24128 commit 3de8b4d
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client/src/components/diagram/PopUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,17 @@ const Wrapper = styled.div`
transform: translate(var(--x), var(--y));
`;

const PopUp = ({ type, x, y }: { type: 'Todo' | 'Vertex' | 'None'; x: number; y: number }): ReactElement => {
const PopUp = ({
type,
x,
y,
id,
}: {
type: 'Todo' | 'Vertex' | 'None';
x: number;
y: number;
id: string;
}): ReactElement => {
const style = { '--x': `${x}px`, '--y': `${y}px` };
return (
<>
Expand Down

0 comments on commit 3de8b4d

Please sign in to comment.