-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use correct height for unbonding model (#196) * fix: improvement on using the correct height for unbonding model --------- Co-authored-by: wjrjerome <[email protected]> * feat: enable another wallet on mainnet (#200) * fix na inconsistent display (#205) * fix small points amount display (#206) * fix: skip ordinals for cactus (#208) * fix: skip ordinals for cactus --------- Co-authored-by: Filippos Malandrakis <[email protected]> * fix: mempool endpoints errors should provide better UX (#165) * fix: mempool endpoints errors should provide better UX * fix: remove delegation from local storage only when error status is 404 * fix: delegations tests (#170) * feat: move wallet provider logic in react context (#178) * feat: refactor global params (#182) * feat: refactor global params * fix: version info data for loading state * fix: small review issues * fix: review issues * feat: added new api hooks and global states (#197) * feat: added new api hooks and global states * fix: review issues * fix: add new eslint rule for booleans * fix: FAQ test * fix: review feedback * use correct height for unbonding model (#196) (#202) * use correct height for unbonding model (#196) * fix: improvement on using the correct height for unbonding model --------- Co-authored-by: wjrjerome <[email protected]> * fix format --------- Co-authored-by: wjrjerome <[email protected]> * linting error * resolve comments --------- Co-authored-by: wjrjerome <[email protected]> Co-authored-by: Crypto Minion <[email protected]> Co-authored-by: Filippos Malandrakis <[email protected]> Co-authored-by: David Totrashvili <[email protected]>
- Loading branch information
1 parent
d4c69c8
commit 756f128
Showing
7 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import React from "react"; | ||
import { NumericFormat } from "react-number-format"; | ||
import { Tooltip } from "react-tooltip"; | ||
|
||
interface PointsProps { | ||
points: number | undefined; | ||
} | ||
|
||
export const Points: React.FC<PointsProps> = ({ points }) => { | ||
if (points === undefined || points === 0) { | ||
return <>n.a.</>; | ||
} | ||
|
||
if (points < 0.001 && points > 0) { | ||
return ( | ||
<> | ||
<span | ||
className="cursor-pointer text-xs" | ||
data-tooltip-id={`tooltip-points-${points}`} | ||
data-tooltip-content={points.toFixed(8)} | ||
> | ||
<0.001 | ||
</span> | ||
<Tooltip id={`tooltip-points-${points}`} className="tooltip-wrap" /> | ||
</> | ||
); | ||
} | ||
|
||
return ( | ||
<NumericFormat | ||
value={points.toFixed(3)} | ||
displayType="text" | ||
thousandSeparator="," | ||
decimalSeparator="." | ||
/> | ||
); | ||
}; |
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