Skip to content

Commit

Permalink
style(media): use defaultProps for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkrolick committed Jul 16, 2019
1 parent 3903dff commit dc02376
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/media/MediaMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type Props = {
label?: string,
};

const MediaMenu = ({ className, children, isDisabled = false, label, ...rest }: Props) => (
const MediaMenu = ({ className, children, isDisabled, label, ...rest }: Props) => (
<div className={classnames('bdl-Media-menu', className)} {...rest}>
<DropdownMenu constrainToScrollParent isRightAligned>
<PlainButton isDisabled={isDisabled} type="button" aria-label={label}>
Expand All @@ -30,4 +30,8 @@ const MediaMenu = ({ className, children, isDisabled = false, label, ...rest }:
</div>
);

MediaMenu.defaultProps = {
isDisabled: false,
};

export default MediaMenu;

0 comments on commit dc02376

Please sign in to comment.