fixing proptype validation and syntax of "z-index" to "zIndex"

This commit is contained in:
Alex Windett 2017-01-24 11:31:52 +00:00
parent 62f9598c5c
commit deca0897a8

View File

@ -44,14 +44,14 @@ const arrowPosition = {
const tooltipStyle = {
position: 'absolute',
top: 0,
'z-index': 1
zIndex: 1
};
const PlainButton = styled.button`
background: transparent;
font-size: inherit;
border: none;
z-index: 0;
zIndex: 0;
font-family: inherit;
color: inherit;
`;
@ -93,7 +93,10 @@ const PersonStatus = (props) => {
PersonStatus.propTypes = {
handleStatusTooltip: React.PropTypes.func,
person: React.PropTypes.object,
toggledID: React.PropTypes.string,
toggledID: React.PropTypes.oneOfType([
React.PropTypes.string,
React.PropTypes.bool,
])
};
module.exports = PersonStatus;