Antd updates (#2194)
* Fix antd Modal.visible warning by using updated attribute name 'open'. * Update more attributes (onVisibleChange => onOpenChange, defaultVisible => defaultOpen) to fix browser console warnings. * Update ModalProps property from 'visible' to 'open' to match the change in antd. * Update variable names to match the antd change from 'visible' to 'open'. * Inline this for the linter. * One more visible => open reference.
This commit is contained in:
@@ -37,7 +37,7 @@ export const ActionButton: FC<ActionButtonProps> = ({
|
||||
<Modal
|
||||
title={description || title}
|
||||
url={url}
|
||||
visible={showModal}
|
||||
open={showModal}
|
||||
height="80vh"
|
||||
handleCancel={() => setShowModal(false)}
|
||||
/>
|
||||
|
||||
@@ -29,7 +29,7 @@ export const FollowButton: FC<FollowButtonProps> = props => {
|
||||
</Button>
|
||||
<Modal
|
||||
title={`Follow ${name}`}
|
||||
visible={showModal}
|
||||
open={showModal}
|
||||
handleCancel={() => setShowModal(false)}
|
||||
width="550px"
|
||||
height="200px"
|
||||
|
||||
Reference in New Issue
Block a user