diff --git a/src/components/UI/ButtonLinkSecondary.tsx b/src/components/UI/ButtonLinkSecondary.tsx index 94ff6ff629..3cea28fd7f 100644 --- a/src/components/UI/ButtonLinkSecondary.tsx +++ b/src/components/UI/ButtonLinkSecondary.tsx @@ -9,14 +9,21 @@ interface Props extends LinkProps { export const ButtonLinkSecondary: React.FC = ({ href, children, ...restProps }) => { const isExternal: boolean = href.toString().startsWith('http'); + const variant = LinkTheme.variants['button-link-secondary']; return ( - - + {isExternal ? ( + {children} - + ) : ( + + + {children} + + + )} ); }; diff --git a/src/components/UI/docs/MDComponents.tsx b/src/components/UI/docs/MDComponents.tsx index dab3a440d1..2e7f88122c 100644 --- a/src/components/UI/docs/MDComponents.tsx +++ b/src/components/UI/docs/MDComponents.tsx @@ -28,14 +28,15 @@ const MDComponents = { }, // links a: ({ children, href }: any) => { - return ( + const isExternal = href.startsWith('http') && !href.includes('geth.ethereum.org'); + + return isExternal ? ( + + {children} + + ) : ( - - {children} - + {children} ); }, diff --git a/src/components/layouts/Footer.tsx b/src/components/layouts/Footer.tsx index cd9802ca11..f539477147 100644 --- a/src/components/layouts/Footer.tsx +++ b/src/components/layouts/Footer.tsx @@ -82,11 +82,9 @@ export const Footer: FC = () => { _hover={hoverStyles} p={4} > - - - - - + + +
{ borderColor='primary' p={4} > - - - - - + + +
-
- - - - - +
+ + +