From 54b77509749ad5dcaa2b8497e4d320fa90c03bf6 Mon Sep 17 00:00:00 2001 From: vantuz-subhuman Date: Tue, 7 Nov 2023 12:54:58 +0300 Subject: [PATCH] flow and lint fixes --- src/components/NoStakePoolsFound.js | 2 +- src/components/StakingPoolCard.js | 1 + src/components/common/Tooltip.js | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/components/NoStakePoolsFound.js b/src/components/NoStakePoolsFound.js index 9d5efb9..899af9d 100644 --- a/src/components/NoStakePoolsFound.js +++ b/src/components/NoStakePoolsFound.js @@ -19,7 +19,7 @@ const Container = styled.div` } `; -function NoStakePoolsFound() { +function NoStakePoolsFound(): React$Node { return ( Staking Pools diff --git a/src/components/StakingPoolCard.js b/src/components/StakingPoolCard.js index f077597..c5da661 100644 --- a/src/components/StakingPoolCard.js +++ b/src/components/StakingPoolCard.js @@ -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 */} diff --git a/src/components/common/Tooltip.js b/src/components/common/Tooltip.js index a3a81ed..d475279 100644 --- a/src/components/common/Tooltip.js +++ b/src/components/common/Tooltip.js @@ -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 ( {children}