Skip to content

Commit

Permalink
fix: 불필요한 파라미터 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludovico7 committed Nov 16, 2024
1 parent 814aad0 commit 76f4d1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/components/block/Block.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface BlockProps {
isActive: boolean;
onInput: (e: React.FormEvent<HTMLDivElement>, blockId: BlockId) => void;
onKeyDown: (e: React.KeyboardEvent<HTMLDivElement>) => void;
onClick: (e: React.MouseEvent, blockId: BlockId) => void;
onClick: (blockId: BlockId) => void;
}

export const Block: React.FC<BlockProps> = memo(
Expand Down Expand Up @@ -40,7 +40,7 @@ export const Block: React.FC<BlockProps> = memo(

const handleClick = (e: React.MouseEvent) => {
e.preventDefault();
onClick(e, block.id);
onClick(block.id);
};

return (
Expand Down
2 changes: 1 addition & 1 deletion client/src/features/editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const Editor = ({ onTitleChange }: EditorProps) => {
onTitleChange(e.target.value);
};

const handleBlockClick = (e: React.MouseEvent, blockId: BlockId) => {
const handleBlockClick = (blockId: BlockId) => {
const block = editorState.linkedList.getNode(blockId);
if (!block) return;

Expand Down
2 changes: 1 addition & 1 deletion client/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

0 comments on commit 76f4d1f

Please sign in to comment.