Skip to content

Commit d452bc9

Browse files
committed
doc: add new helper for antdModalV5, antdDrawerV5
1 parent 9307197 commit d452bc9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,9 @@ For every modal implementation we always need to these binding manually. So, to
361361
import NiceModal, {
362362
muiDialog,
363363
antdModal,
364+
antdModalV5,
364365
antdDrawer,
366+
antdDrawerV5,
365367
bootstrapDialog
366368
} from '@ebay/nice-modal-react';
367369

@@ -373,9 +375,15 @@ const modal = useModal();
373375
// For ant.design
374376
<Modal {...antdModal(modal)}>
375377

378+
// For ant.design v4.23.0 or later
379+
<Modal {...antdModalV5(modal)}>
380+
376381
// For antd drawer
377382
<Drawer {...antdDrawer(modal)}>
378383

384+
// For antd drawer v4.23.0 or later
385+
<Drawer {...antdDrawerV5(modal)}>
386+
379387
// For bootstrap dialog
380388
<Dialog {...bootstrapDialog(modal)}>
381389

0 commit comments

Comments
 (0)