Skip to content

Commit 254a2a5

Browse files
committed
imrpoved API to make less bugs when using this component
1 parent fe75e17 commit 254a2a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/client/components/modals/modalQuick/ModalQuickUrl.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ function ModalQuickUrl({
2222
shouldTriggerReceiveState,
2323
ModalContent,
2424
}) {
25-
console.log('Render ModalQuickUrl');
2625
const history = urlSearchParamKey && useHistory();
2726
const location = urlSearchParamKey && useLocation();
2827

@@ -69,7 +68,7 @@ ModalQuickUrl.defaultProps = {
6968
};
7069

7170
ModalQuickUrl.propTypes = {
72-
urlSearchParamKey: PropTypes.string,
71+
urlSearchParamKey: PropTypes.string.isRequired, // This needs to be unique if more than one component uses this component, ie, in a list (use id or index as a name than)
7372
urlSearchParamValue: PropTypes.string,
7473
overlayClassName: PropTypes.string,
7574
stopBackgroundScroll: PropTypes.bool,

0 commit comments

Comments
 (0)