Skip to content

Commit

Permalink
remove error of nested <div> in <a>
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Feb 16, 2024
1 parent 8ba7305 commit 2cc1195
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/ui/links/EtherscanLinkBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default function EtherscanBase({ children, ...rest }: LinkProps) {
const { t } = useTranslation();
const containerRef = useRef<HTMLDivElement>(null);
return (
<ExternalLink {...rest}>
<Box ref={containerRef}>
<Box ref={containerRef}>
<ExternalLink {...rest}>
<ModalTooltip
label={t('etherscanTip')}
placement="bottom"
Expand All @@ -23,7 +23,7 @@ export default function EtherscanBase({ children, ...rest }: LinkProps) {
{/* Box here allows multiple children to be wrapped by a single tooltip */}
<Box>{children}</Box>
</ModalTooltip>
</Box>
</ExternalLink>
</ExternalLink>
</Box>
);
}

0 comments on commit 2cc1195

Please sign in to comment.