From 27b66b163173c4999e7e4e16af73111b69352c0e Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Sun, 9 Feb 2020 03:15:26 +0900 Subject: [PATCH] use correct href link --- styles/MainTheme.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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) ? ( + + ) : ( + );