Skip to content

Commit

Permalink
use system.propNames and remove console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
logansparlin committed Apr 2, 2020
1 parent 09031e3 commit fa5189b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion packages/matchbox/src/components/Button/Button.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function Button(props) {
...rest // TODO remove spreading of unknown props
} = props;

const systemProps = pick(rest, [...margin.propNames, ...width.propNames]);
const systemProps = pick(rest, system.propNames);
const componentProps = omit(rest);

// Polyfills deprecrated 'Component' prop
Expand Down
2 changes: 0 additions & 2 deletions packages/matchbox/src/components/Toggle/Toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ function Toggle(props) {
} = props;
const systemProps = pick(rest);
const componentProps = omit(rest, margin.propNames);
console.log(rest);
console.log(componentProps);

return (
<StyledToggle htmlFor={id} disabled={disabled} {...systemProps}>
Expand Down

0 comments on commit fa5189b

Please sign in to comment.