Skip to content

Commit

Permalink
fix: remove type annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Mar 29, 2022
1 parent 8f28206 commit be418a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/examples/src/04-sortable/stress-test/Card.tsx
@@ -1,6 +1,5 @@
import { CSSProperties, FC, memo, useMemo, useRef } from 'react'
import { useDrag, useDrop } from 'react-dnd'
import type { DragDropMonitor } from 'dnd-core'
import { ItemTypes } from './ItemTypes'

const style: CSSProperties = {
Expand All @@ -22,7 +21,7 @@ export const Card: FC<CardProps> = memo(function Card({ id, text, moveCard }) {
const [{ isDragging, handlerId }, connectDrag] = useDrag({
type: ItemTypes.CARD,
item: { id },
collect: (monitor: DragDropMonitor) => {
collect: (monitor) => {
const result = {
handlerId: monitor.getHandlerId(),
isDragging: monitor.isDragging(),
Expand Down

0 comments on commit be418a7

Please sign in to comment.