Bit of styling and propTypes
This commit is contained in:
@@ -31,9 +31,14 @@ export default function UnitButton({
|
||||
}
|
||||
|
||||
UnitButton.propTypes = {
|
||||
isActive: PropTypes.bool.isRequired,
|
||||
isComplete: PropTypes.bool.isRequired,
|
||||
isActive: PropTypes.bool,
|
||||
isComplete: PropTypes.bool,
|
||||
onClick: PropTypes.func.isRequired,
|
||||
pageTitle: PropTypes.string.isRequired,
|
||||
type: PropTypes.string.isRequired,
|
||||
};
|
||||
|
||||
UnitButton.defaultProps = {
|
||||
isActive: false,
|
||||
isComplete: false,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user