Skip to content

Commit

Permalink
Update transferProps.js
Browse files Browse the repository at this point in the history
I've removed the console.log('props', props); statement. To prevent similar errors in the future, configuredESLint to disallow console.log statements unless explicitly allowed by an eslint-disable statement.
  • Loading branch information
joeyyy09 authored Apr 9, 2024
1 parent 48697e4 commit 62d06cb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/components/_helpers/transferProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const transferProps = (props) => {
} = props;

if (process.env.NODE_ENV !== 'production') {
console.log('props', props);
const invalidProps = [
'children', // It is always either handled by the component itself or not supported.
'className', // Classes are set by component authors, changing it arbitrarily might break things.
Expand Down

0 comments on commit 62d06cb

Please sign in to comment.