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
1 changed files with 6 additions and 3 deletions

View File

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