Skip to content
Snippets Groups Projects
Commit ea6a55f0 authored by chris's avatar chris
Browse files

default props

parent 988652eb
No related branches found
No related tags found
1 merge request!190Find and replace
......@@ -126,9 +126,11 @@ const FindComponent = ({ close, expand }) => {
});
findAndReplacePlugin.props.setResults(results);
if (results.length > 0) setCounterText(`1 of ${results.length}`);
tr.setMeta('search', true);
main.dispatch(tr);
if (results.length > 0) {
setCounterText(`1 of ${results.length}`);
tr.setMeta('search', true);
main.dispatch(tr);
}
};
const closeFind = () => {
......
......@@ -110,18 +110,11 @@ const CheckBox = props => {
CheckBox.propTypes = {
name: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
// active: PropTypes.bool.isRequired,
// disabled: PropTypes.bool.isRequired,
// iconName: PropTypes.string,
// label: PropTypes.string,
// title: PropTypes.string,
label: PropTypes.string,
};
CheckBox.defaultProps = {
// iconName: null,
// label: null,
// title: null,
label: null,
};
export default CheckBox;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment