Skip to content

Commit

Permalink
defaultProps -> default arg value
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Nov 30, 2020
1 parent 4eef451 commit 4461198
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/components/src/disabled/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@ const DISABLED_ELIGIBLE_NODE_NAMES = [
'TEXTAREA',
];

const defaultProps = {
isDisabled: true,
};

function Disabled( { className, children, isDisabled, ...props } ) {
function Disabled( { className, children, isDisabled = true, ...props } ) {
const node = useRef();

const disable = () => {
Expand Down Expand Up @@ -115,8 +111,6 @@ function Disabled( { className, children, isDisabled, ...props } ) {
);
}

Disabled.defaultProps = defaultProps;

Disabled.Consumer = Consumer;

export default Disabled;

0 comments on commit 4461198

Please sign in to comment.