Skip to content

Commit 02622de

Browse files
author
Emre Güdür
committed
chatlist example onDragComponent added
1 parent 9d95eca commit 02622de

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

example/components/ChatListExample.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ function ChatListExample() {
157157
onDragEnter={(e: React.DragEventHandler, id: number) => console.log(e, id, 'onDragEnter')}
158158
onDragLeave={(e: React.DragEventHandler, id: number) => console.log(e, id, 'onDragLeave')}
159159
onDrop={(e: React.DragEventHandler, id: number) => console.log(e, id, 'onDrop')}
160-
onDragComponent={() => {
161-
;<div className='on-drag-mlist'>{loremIpsum({ count: 4, units: 'words' })}</div>
162-
}}
160+
onDragComponent={() => <div className='on-drag-mlist'>{loremIpsum({ count: 4, units: 'words' })}</div>}
163161
/>
164162
),
165163
}}

0 commit comments

Comments
 (0)