Skip to content

Commit

Permalink
fix(icon): remove default value of event handler props
Browse files Browse the repository at this point in the history
  • Loading branch information
heech1013 committed Feb 9, 2023
1 parent 70efd99 commit fa1c65e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/bezier-react/src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/* External dependencies */
import React, { memo } from 'react'
import { noop } from 'lodash-es'

/* Internal dependencies */
import type IconProps from './Icon.types'
Expand All @@ -19,8 +18,8 @@ export const Icon = memo(function Icon({
marginRight = 0,
marginBottom = 0,
marginLeft = 0,
onClick = noop,
onMouseDown = noop,
onClick,
onMouseDown,
}: IconProps) {
return (
<Styled
Expand Down

0 comments on commit fa1c65e

Please sign in to comment.