diff --git a/demo/src/TreeViewFinderConfig.jsx b/demo/src/TreeViewFinderConfig.jsx index dbce87da..44e31196 100644 --- a/demo/src/TreeViewFinderConfig.jsx +++ b/demo/src/TreeViewFinderConfig.jsx @@ -24,16 +24,16 @@ import { Checkbox, FormControl, FormControlLabel, FormGroup, FormLabel, Radio, R */ function TreeViewFinderConfig(props) { const { - dynamicData, - dataFormat, - multiSelect, - onlyLeaves, - sortedAlphabetically, - onDynamicDataChange, - onDataFormatChange, - onSelectionTypeChange, - onOnlyLeavesChange, - onSortedAlphabeticallyChange, + dynamicData = false, + dataFormat = 'Tree', + multiSelect = false, + onlyLeaves = false, + sortedAlphabetically = false, + onDynamicDataChange = () => {}, + onDataFormatChange = () => {}, + onSelectionTypeChange = () => {}, + onOnlyLeavesChange = () => {}, + onSortedAlphabeticallyChange = () => {}, } = props; return ( @@ -133,17 +133,4 @@ TreeViewFinderConfig.propTypes = { onSortedAlphabeticallyChange: PropTypes.func, }; -TreeViewFinderConfig.defaultProps = { - dynamicData: false, - dataFormat: 'Tree', - multiSelect: false, - onlyLeaves: false, - sortedAlphabetically: false, - onDynamicDataChange: () => {}, - onDataFormatChange: () => {}, - onSelectionTypeChange: () => {}, - onOnlyLeavesChange: () => {}, - onSortedAlphabeticallyChange: () => {}, -}; - export default TreeViewFinderConfig; diff --git a/demo/src/right-resizable-box.jsx b/demo/src/right-resizable-box.jsx index b56f7644..e6830167 100644 --- a/demo/src/right-resizable-box.jsx +++ b/demo/src/right-resizable-box.jsx @@ -53,7 +53,7 @@ const styles = { const ResizableBoxSx = styled(ResizableBox)({}); function RightResizableBox(props) { - const { children, disableResize, fullscreen, hide } = props; + const { children, disableResize = false, fullscreen = false, hide = false } = props; const windowWidth = useWindowWidth(); const [resizedTreePercentage, setResizedTreePercentage] = useState(0.5); @@ -86,12 +86,6 @@ function RightResizableBox(props) { ); } -RightResizableBox.defaultProps = { - disableResize: false, - fullscreen: false, - hide: false, -}; - RightResizableBox.propTypes = { children: PropTypes.node, disableResize: PropTypes.bool,