Skip to content

Commit

Permalink
flow and lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vsubhuman committed Nov 7, 2023
1 parent 5f6a3ca commit 54b7750
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/NoStakePoolsFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const Container = styled.div`
}
`;

function NoStakePoolsFound() {
function NoStakePoolsFound(): React$Node {
return (
<Container>
<img className="staking-img" src={stakingIllustration} alt="Staking Pools" />
Expand Down
1 change: 1 addition & 0 deletions src/components/StakingPoolCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function StakingPoolCard({ id, bech, avatar, tickerName, name, links, fullname }
rel="noreferrer noopener"
>
{tickerName ? <>[{tickerName}] </> : null}
{/* eslint-disable-next-line react/no-danger */}
<span dangerouslySetInnerHTML={{ __html: name || '' }} />
</a>
<DesktopOnly>
Expand Down
7 changes: 6 additions & 1 deletion src/components/common/Tooltip.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,12 @@ const WrapperToolTipRevamp = styled.div`
}
`;

function TooltipRevamp({ textInfo, children }: Props): Node {
type PropsRevamp = {|
children: Node,
textInfo: ?string,
|};

function TooltipRevamp({ textInfo, children }: PropsRevamp): Node {
return (
<WrapperToolTipRevamp>
<ToolTip data-text={textInfo}>{children}</ToolTip>
Expand Down

0 comments on commit 54b7750

Please sign in to comment.