Skip to content

Commit

Permalink
refactor(NestedSelectModal): Remove useless open prop
Browse files Browse the repository at this point in the history
The `open` prop having been passed to the `useCozyDialog` hook, there is no need to add it a second time
  • Loading branch information
Merkur39 committed Sep 22, 2023
1 parent 6d4447f commit b357c73
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions react/NestedSelect/Modal.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@ const NestedSelectDialogContent = ({ children }) => {
const NestedSelectModal = props => {
const { dialogProps } = useCozyDialog({ open: true })
return (
<Dialog
{...dialogProps}
open={true}
title={props.title}
onClose={props.onClose}
>
<Dialog {...dialogProps} title={props.title} onClose={props.onClose}>
<DialogCloseButton
onClick={props.onClose}
data-testid={`modal-close-button-nested-select`}
Expand Down

0 comments on commit b357c73

Please sign in to comment.