-
Notifications
You must be signed in to change notification settings - Fork 349
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(infotip): adds some eslint fixes for infotip (#246)
- Loading branch information
1 parent
92cd286
commit 9dd5baf
Showing
8 changed files
with
58 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,22 @@ | ||
import React from 'react'; | ||
import ClassNames from 'classnames'; | ||
import classNames from 'classnames'; | ||
import PropTypes from 'prop-types'; | ||
|
||
class InfoTipMenuFooter extends React.Component { | ||
render() { | ||
const { children, className, ...props } = this.props; | ||
const InfoTipMenuFooter = ({ children, className, ...props }) => { | ||
const infoTipMenuFooterClass = classNames('footer', className); | ||
|
||
const infoTipMenuFooterClass = ClassNames('footer', className); | ||
|
||
return ( | ||
<div ref="InfotipFooter" className={infoTipMenuFooterClass} {...props}> | ||
{children} | ||
</div> | ||
); | ||
} | ||
} | ||
return ( | ||
<div className={infoTipMenuFooterClass} {...props}> | ||
{children} | ||
</div> | ||
); | ||
}; | ||
|
||
InfoTipMenuFooter.propTypes = { | ||
children: PropTypes.node.isRequired, | ||
className: PropTypes.string | ||
}; | ||
|
||
InfoTipMenuFooter.defaultProps = { | ||
className: '' | ||
}; | ||
export default InfoTipMenuFooter; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,31 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import ClassNames from 'classnames'; | ||
import classNames from 'classnames'; | ||
import { Icon } from '../Icon'; | ||
|
||
class InfoTipMenuItemIcon extends React.Component { | ||
render() { | ||
const { type, name, className, ...props } = this.props; | ||
const InfoTipMenuItemIcon = ({ type, name, className, ...props }) => { | ||
const infoTipMenuItemIconClass = classNames('i', className); | ||
|
||
const infoTipMenuItemIconClass = ClassNames('i', className); | ||
|
||
return ( | ||
<Icon | ||
type={type} | ||
name={name} | ||
className={infoTipMenuItemIconClass} | ||
{...props} | ||
/> | ||
); | ||
} | ||
} | ||
return ( | ||
<Icon | ||
type={type} | ||
name={name} | ||
className={infoTipMenuItemIconClass} | ||
{...props} | ||
/> | ||
); | ||
}; | ||
|
||
InfoTipMenuItemIcon.propTypes = { | ||
type: PropTypes.oneOf(['fa', 'pf']), | ||
name: PropTypes.string.isRequired, | ||
name: PropTypes.string, | ||
className: PropTypes.string | ||
}; | ||
|
||
InfoTipMenuItemIcon.defaultProps = { | ||
type: 'pf', | ||
name: 'info' | ||
name: 'info', | ||
className: '' | ||
}; | ||
|
||
export default InfoTipMenuItemIcon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters