Skip to content

Commit 03770c9

Browse files
authored
Merge pull request #2323 from oasisprotocol/lw/fix-abi-link
Fix and cleanup ABI Playground link styling
2 parents 15f1b61 + 5e2e4ec commit 03770c9

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

.changelog/2323.trivial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix ABI Playground link styling

src/app/components/ConsensusTransactionMethod/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ const MethodIconContent: FC<MethodIconContentProps> = ({
9494
border: border ? `2px solid ${theme.primary}` : 'none',
9595
}}
9696
>
97-
{cloneElement(icon, { sx: { fontSize: Math.ceil(size * iconRatio) } })}
97+
{cloneElement(icon, { style: { fontSize: Math.ceil(size * iconRatio) } })}
9898
</div>
9999
{label && (
100100
<Typography

src/app/components/ContractVerificationIcon/AbiPlaygroundLink.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const AbiPlaygroundLink: FC<{
3030
href: scopeToPlaygroundURL[scope.network]?.[scope.layer],
3131
rel: 'noopener noreferrer',
3232
target: '_blank',
33-
sx: { fontWeight: 400, color: 'inherit', textDecoration: 'underline' },
3433
}
3534

3635
if (!abiPlaygroundLinkProps.href) return null
@@ -42,7 +41,7 @@ export const AbiPlaygroundLink: FC<{
4241
t={t}
4342
i18nKey={'contract.verification.openInAbiPlayground'}
4443
components={{
45-
AbiPlaygroundLink: <Link className="text-inherit" {...abiPlaygroundLinkProps} />,
44+
AbiPlaygroundLink: <Link className="text-inherit underline" {...abiPlaygroundLinkProps} />,
4645
}}
4746
/>
4847
</div>

src/app/components/ContractVerificationIcon/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export const VerificationIcon: FC<{
3333
href: hideLink ? undefined : `${externalLinks.dapps.sourcifyRoot}#/lookup/${address_eth}`,
3434
rel: 'noopener noreferrer',
3535
target: '_blank',
36-
sx: { fontWeight: 400, color: 'inherit', textDecoration: 'underline' },
3736
onClick: verificationLevel ? undefined : () => setExplainDelay(true),
3837
}
3938
return (

0 commit comments

Comments
 (0)