Skip to content

Commit

Permalink
chore: 불필요한 매개변수 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
hyonun321 committed Nov 29, 2024
1 parent 24ccf61 commit c12490a
Showing 1 changed file with 1 addition and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,9 @@ import { workspaceListContainer, workspaceModalContainer } from "./WorkspaceSele
interface WorkspaceSelectModalProps {
isOpen: boolean;
userName: string | null;
onMouseEnter: () => void;
onMouseLeave: () => void;
}

export const WorkspaceSelectModal = ({
isOpen,
userName,
onMouseEnter,
onMouseLeave,
}: WorkspaceSelectModalProps) => {
export const WorkspaceSelectModal = ({ isOpen, userName }: WorkspaceSelectModalProps) => {
const modalRef = useRef<HTMLDivElement>(null);
const { availableWorkspaces } = useSocketStore(); // 소켓 스토어에서 직접 워크스페이스 목록 가져오기

Expand Down Expand Up @@ -45,8 +38,6 @@ export const WorkspaceSelectModal = ({
pointerEvents: isOpen ? "auto" : "none",
display: isOpen ? "block" : "none",
}}
onMouseEnter={onMouseEnter}
onMouseLeave={onMouseLeave}
>
<div className={workspaceListContainer}>
{userName && availableWorkspaces.length > 0 ? (
Expand Down

0 comments on commit c12490a

Please sign in to comment.