diff --git a/styles/MainTheme.tsx b/styles/MainTheme.tsx index 7cc8dbc..5d3df7b 100644 --- a/styles/MainTheme.tsx +++ b/styles/MainTheme.tsx @@ -49,12 +49,11 @@ export const components = { h5: (props: {}) => , h6: (props: {}) => , a: ({ href, ...props }: { href: string }) => { - const url = isValidURL(href) - ? href - : `${process.env.NEXT_BASE_PATH}${href}`; - - return ( - + const url = `${process.env.NEXT_BASE_PATH}${href}`; + return isValidURL(href) ? ( + + ) : ( + );