Skip to content

Commit

Permalink
S-67419 fix default prop so API props table will render
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-codes committed Feb 14, 2019
1 parent 0a39459 commit 9525764
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/icons/src/Base.js
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';

const Base = ({ color = '#000', icon: Icon, size, ...rest }) => (
const Base = ({ color, icon: Icon, size, ...rest }) => (
<Icon
style={{
display: 'inline-flex',
Expand All @@ -13,10 +13,15 @@ const Base = ({ color = '#000', icon: Icon, size, ...rest }) => (
/>
);
Base.propTypes = {
/** Color of icon. */
color: PropTypes.string,
/** Size dimensions of icon. */
size: PropTypes.number,
/** Title of icon. */
title: PropTypes.string.isRequired,
};
Base.defaultProps = {
color: '#000',
size: 24,
};
export default Base;

0 comments on commit 9525764

Please sign in to comment.