Skip to content

Commit

Permalink
use default prop
Browse files Browse the repository at this point in the history
  • Loading branch information
markkaylor committed Jun 14, 2022
1 parent 9c30260 commit e6f395e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Expand Up @@ -44,7 +44,11 @@ const PageHeader = ({ isOnline, npmPackageType }) => {

export default PageHeader;

PageHeader.defaultProps = {
npmPackageType: 'plugin',
};

PageHeader.propTypes = {
isOnline: PropTypes.bool.isRequired,
npmPackageType: PropTypes.string.isRequired,
npmPackageType: PropTypes.string,
};
Expand Up @@ -138,7 +138,7 @@ const MarketPlacePage = () => {
return (
<Layout>
<Main>
<PageHeader isOnline={isOnline} npmPackageType={npmPackageType} />
<PageHeader isOnline={isOnline} />
<Flex
width="100%"
direction="column"
Expand Down

0 comments on commit e6f395e

Please sign in to comment.