Modal visible -> open

Summary: The `visible` prop is marked as deprecated in favour of `open`

Reviewed By: passy

Differential Revision: D49226821

fbshipit-source-id: 4a4a7d03a1c8ff860c4e4cd02e19071185a8554e
This commit is contained in:
Lorenzo Blasa
2023-09-13 05:19:13 -07:00
committed by Facebook GitHub Bot
parent 860af1eff7
commit e80843d433
18 changed files with 25 additions and 30 deletions

View File

@@ -477,7 +477,7 @@ function showCustomColumnDialog(
return (
<Modal
title="Add custom column"
visible
open
onOk={() => {
const header = form.getFieldValue('header');
const type = form.getFieldValue('type');
@@ -614,7 +614,7 @@ export function Component() {
}
/>
<Modal
visible={showMockResponseDialog}
open={showMockResponseDialog}
onCancel={instance.onCloseButtonPressed}
footer={null}
title="Mock Network Responses"