Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
chore: fix code smells for buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
shafin-deriv committed Feb 15, 2024
1 parent d570b5b commit 2f53da1
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/components/Draggable/Draggable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,46 +180,49 @@ const Draggable = ({
<>
<div
className='resizable-handle__top'
tabIndex={0}
role='button'
onKeyDown={e => handleMouseDown(e, TOP)}
onMouseDown={e => handleMouseDown(e, TOP)}
/>
<div
className='resizable-handle__right'
tabIndex={0}
role='button'
onKeyDown={e => handleMouseDown(e, RIGHT)}
onMouseDown={e => handleMouseDown(e, RIGHT)}
/>
<div
className='resizable-handle__bottom'
tabIndex={0}
role='button'
onKeyDown={e => handleMouseDown(e, BOTTOM)}
onMouseDown={e => handleMouseDown(e, BOTTOM)}
/>
<div
className='resizable-handle__left'
tabIndex={0}
role='button'
onKeyDown={e => handleMouseDown(e, LEFT)}
onMouseDown={e => handleMouseDown(e, LEFT)}
/>
<div
className='resizable-handle__top-right'
tabIndex={0}
role='button'
onKeyDown={e => handleMouseDown(e, TOP_RIGHT)}
onMouseDown={e => handleMouseDown(e, TOP_RIGHT)}
/>
<div
className='resizable-handle__bottom-right'
role='button'
onKeyDown={e => handleMouseDown(e, BOTTOM_RIGHT)}
onMouseDown={e => handleMouseDown(e, BOTTOM_RIGHT)}
/>
<div
className='resizable-handle__bottom-left'
role='button'
onKeyDown={e => handleMouseDown(e, BOTTOM_LEFT)}
onMouseDown={e => handleMouseDown(e, BOTTOM_LEFT)}
/>
<div
className='resizable-handle__top-left'
role='button'
onKeyDown={e => handleMouseDown(e, TOP_LEFT)}
onMouseDown={e => handleMouseDown(e, TOP_LEFT)}
/>
Expand Down

0 comments on commit 2f53da1

Please sign in to comment.