diff --git a/src/components/Home/index.tsx b/src/components/Home/index.tsx index a7df61b..03dab2c 100644 --- a/src/components/Home/index.tsx +++ b/src/components/Home/index.tsx @@ -10,15 +10,6 @@ interface IMenuItemProps { } const MenuItem: FC = ({ children, to }) => { - if (to.match(/^(https?:\/\/)/)) { - return ( - - {children} - - - ) - } - return ( { rules resources tech spotlights - - forum - join us diff --git a/src/components/Home/styles.tsx b/src/components/Home/styles.tsx index fa40729..20b96ad 100644 --- a/src/components/Home/styles.tsx +++ b/src/components/Home/styles.tsx @@ -170,7 +170,3 @@ export const menuItemStyles = css` export const MenuItem = styled(Link)` ${menuItemStyles}; ` - -export const MenuItemExternal = styled.a` - ${menuItemStyles}; -` diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx index b6edf7b..45fce25 100644 --- a/src/components/Sidebar/index.tsx +++ b/src/components/Sidebar/index.tsx @@ -11,14 +11,6 @@ interface IMenuItemProps { } const MenuItem: FC = ({ children, to }) => { - if (to.match(/^(https?:\/\/)/)) { - return ( - - {children} - - ) - } - return ( {children} @@ -46,9 +38,6 @@ export const Sidebar: FCrules resources tech spotlights - - forum - diff --git a/src/components/Sidebar/styles.tsx b/src/components/Sidebar/styles.tsx index 2603a58..4b9a949 100644 --- a/src/components/Sidebar/styles.tsx +++ b/src/components/Sidebar/styles.tsx @@ -59,7 +59,3 @@ export const menuItemStyles = css` export const MenuItem = styled(Link)` ${menuItemStyles}; ` - -export const MenuItemExternal = styled.a` - ${menuItemStyles}; -`