fix text alignment

This commit is contained in:
saml33 2023-12-12 12:49:16 +11:00
parent ae29e3741e
commit d7e1952fdd
3 changed files with 5 additions and 9 deletions

View File

@ -38,12 +38,6 @@
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"no-console": [
2,
{
"allow": ["warn", "error"]
}
]
}
}

View File

@ -26,6 +26,8 @@ const TokenInfo = ({
const { mint, tags } = tokenPageData
const [copied, setCopied] = useState(false)
console.log(coingeckoData)
const handleCopyMint = (text: string) => {
copyToClipboard(text)
setCopied(true)
@ -92,7 +94,7 @@ const TokenInfo = ({
value={
coingeckoData?.market_data?.ath?.usd ? (
<span className="flex flex-col items-end">
<span className="text-th-fgd-1 text-sm">
<span className="text-th-fgd-1 text-sm text-right">
{`$${formatNumericValue(coingeckoData.market_data.ath.usd)}`}{' '}
{coingeckoData?.market_data?.ath_change_percentage?.usd ? (
<span
@ -129,7 +131,7 @@ const TokenInfo = ({
value={
coingeckoData?.market_data?.atl?.usd ? (
<span className="flex flex-col items-end">
<span className="text-th-fgd-1 text-sm">
<span className="text-th-fgd-1 text-sm text-right">
{`$${formatNumericValue(coingeckoData.market_data.atl.usd)}`}{' '}
{coingeckoData?.market_data?.atl_change_percentage?.usd ? (
<span

File diff suppressed because one or more lines are too long