From 3bd0cf95d3b9186b5b99b94f32c3dd538546958f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Sirois Date: Tue, 10 Mar 2020 01:20:25 -0400 Subject: [PATCH] feat: remove link to forum for the time being --- src/components/Home/index.tsx | 12 ------------ src/components/Home/styles.tsx | 4 ---- src/components/Sidebar/index.tsx | 11 ----------- src/components/Sidebar/styles.tsx | 4 ---- 4 files changed, 31 deletions(-) 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}; -`