1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

Fixed styleleint

This commit is contained in:
Vladimir Volek 2018-09-05 11:54:05 +02:00
parent 5803c13c59
commit b95755601d

View File

@ -46,7 +46,6 @@ const StyledRcTooltip = styled(RcTooltip)`
border-style: solid; border-style: solid;
} }
.rc-tooltip-placement-top .rc-tooltip-arrow, .rc-tooltip-placement-top .rc-tooltip-arrow,
.rc-tooltip-placement-topLeft .rc-tooltip-arrow, .rc-tooltip-placement-topLeft .rc-tooltip-arrow,
.rc-tooltip-placement-topRight .rc-tooltip-arrow { .rc-tooltip-placement-topRight .rc-tooltip-arrow {
@ -58,7 +57,6 @@ const StyledRcTooltip = styled(RcTooltip)`
.rc-tooltip-placement-top .rc-tooltip-arrow-inner, .rc-tooltip-placement-top .rc-tooltip-arrow-inner,
.rc-tooltip-placement-topLeft .rc-tooltip-arrow-inner, .rc-tooltip-placement-topLeft .rc-tooltip-arrow-inner,
.rc-tooltip-placement-topRight .rc-tooltip-arrow-inner { .rc-tooltip-placement-topRight .rc-tooltip-arrow-inner {
//bottom: 1px;
bottom: 2px; bottom: 2px;
margin-left: -6px; margin-left: -6px;
border-width: 6px 6px 0; border-width: 6px 6px 0;
@ -153,9 +151,10 @@ const StyledRcTooltip = styled(RcTooltip)`
`; `;
const Tooltip = ({ const Tooltip = ({
content, placement = 'bottomRight', children, content, placement = 'bottomRight', children, className,
}) => ( }) => (
<StyledRcTooltip <StyledRcTooltip
className={className}
arrowContent={<div className="rc-tooltip-arrow-inner" />} arrowContent={<div className="rc-tooltip-arrow-inner" />}
placement={placement} placement={placement}
overlay={<TooltipContent>{content}</TooltipContent>} overlay={<TooltipContent>{content}</TooltipContent>}
@ -166,6 +165,7 @@ const Tooltip = ({
Tooltip.propTypes = { Tooltip.propTypes = {
placement: PropTypes.string, placement: PropTypes.string,
className: PropTypes.string,
children: PropTypes.oneOfType([ children: PropTypes.oneOfType([
PropTypes.element, PropTypes.element,
PropTypes.string, PropTypes.string,