mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-04 17:25:59 +02:00
Merge pull request #229 from the-programmers-hangout/feat-remove-forum-link
feat: remove link to forum for the time being
This commit is contained in:
@@ -10,15 +10,6 @@ interface IMenuItemProps {
|
||||
}
|
||||
|
||||
const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
|
||||
if (to.match(/^(https?:\/\/)/)) {
|
||||
return (
|
||||
<SC.MenuItemExternal href={to} target="_blank">
|
||||
<SC.MenuItemText>{children}</SC.MenuItemText>
|
||||
<SC.MenuItemLine />
|
||||
</SC.MenuItemExternal>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<SC.MenuItem
|
||||
to={to}
|
||||
@@ -83,9 +74,6 @@ export const Home: FC = () => {
|
||||
<MenuItem to="/rules">rules</MenuItem>
|
||||
<MenuItem to="/resources">resources</MenuItem>
|
||||
<MenuItem to="/archives">tech spotlights</MenuItem>
|
||||
<MenuItem to="https://forum.theprogrammershangout.com">
|
||||
forum
|
||||
</MenuItem>
|
||||
</SC.Menu>
|
||||
<DiscordButton>join us</DiscordButton>
|
||||
<HomePartner />
|
||||
|
||||
@@ -170,7 +170,3 @@ export const menuItemStyles = css`
|
||||
export const MenuItem = styled(Link)`
|
||||
${menuItemStyles};
|
||||
`
|
||||
|
||||
export const MenuItemExternal = styled.a`
|
||||
${menuItemStyles};
|
||||
`
|
||||
|
||||
@@ -11,14 +11,6 @@ interface IMenuItemProps {
|
||||
}
|
||||
|
||||
const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
|
||||
if (to.match(/^(https?:\/\/)/)) {
|
||||
return (
|
||||
<SC.MenuItemExternal href={to} target="_blank">
|
||||
{children}
|
||||
</SC.MenuItemExternal>
|
||||
)
|
||||
}
|
||||
|
||||
return (
|
||||
<SC.MenuItem to={to} activeClassName="active">
|
||||
{children}
|
||||
@@ -46,9 +38,6 @@ export const Sidebar: FC<PropsWithChildren<
|
||||
<MenuItem to="/rules">rules</MenuItem>
|
||||
<MenuItem to="/resources">resources</MenuItem>
|
||||
<MenuItem to="/archives">tech spotlights</MenuItem>
|
||||
<MenuItem to="https://forum.theprogrammershangout.com">
|
||||
forum
|
||||
</MenuItem>
|
||||
</SC.Menu>
|
||||
|
||||
<ThemeToggler />
|
||||
|
||||
@@ -59,7 +59,3 @@ export const menuItemStyles = css`
|
||||
export const MenuItem = styled(Link)`
|
||||
${menuItemStyles};
|
||||
`
|
||||
|
||||
export const MenuItemExternal = styled.a`
|
||||
${menuItemStyles};
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user