Skip to content

Commit 71d3a54

Browse files
committed
refactor(dialog): remove unused property
1 parent 279c9b5 commit 71d3a54

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

packages/yoga/src/Dialog/web/Dialog.jsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,7 @@ const Overlay = styled.div`
5151
`}
5252
`;
5353

54-
function Dialog({
55-
isOpen,
56-
hideCloseButton,
57-
children,
58-
onClose,
59-
zIndex,
60-
...props
61-
}) {
54+
function Dialog({ isOpen, children, onClose, zIndex, ...props }) {
6255
const dialogRef = useRef(null);
6356
const dialogElement = usePortal('dialog');
6457

@@ -110,8 +103,6 @@ function Dialog({
110103
Dialog.propTypes = {
111104
/** Control the dialog visibility. */
112105
isOpen: bool,
113-
/** Hide the close button when onClose prop is defined. */
114-
hideCloseButton: bool,
115106
/** Function to close the dialog. */
116107
onClose: func,
117108
backHandler: func,
@@ -121,7 +112,6 @@ Dialog.propTypes = {
121112

122113
Dialog.defaultProps = {
123114
isOpen: false,
124-
hideCloseButton: false,
125115
onClose: undefined,
126116
backHandler: undefined,
127117
zIndex: 3,

0 commit comments

Comments
 (0)