mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 07:56:11 +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 }) => {
|
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 (
|
return (
|
||||||
<SC.MenuItem
|
<SC.MenuItem
|
||||||
to={to}
|
to={to}
|
||||||
@@ -83,9 +74,6 @@ export const Home: FC = () => {
|
|||||||
<MenuItem to="/rules">rules</MenuItem>
|
<MenuItem to="/rules">rules</MenuItem>
|
||||||
<MenuItem to="/resources">resources</MenuItem>
|
<MenuItem to="/resources">resources</MenuItem>
|
||||||
<MenuItem to="/archives">tech spotlights</MenuItem>
|
<MenuItem to="/archives">tech spotlights</MenuItem>
|
||||||
<MenuItem to="https://forum.theprogrammershangout.com">
|
|
||||||
forum
|
|
||||||
</MenuItem>
|
|
||||||
</SC.Menu>
|
</SC.Menu>
|
||||||
<DiscordButton>join us</DiscordButton>
|
<DiscordButton>join us</DiscordButton>
|
||||||
<HomePartner />
|
<HomePartner />
|
||||||
|
|||||||
@@ -170,7 +170,3 @@ export const menuItemStyles = css`
|
|||||||
export const MenuItem = styled(Link)`
|
export const MenuItem = styled(Link)`
|
||||||
${menuItemStyles};
|
${menuItemStyles};
|
||||||
`
|
`
|
||||||
|
|
||||||
export const MenuItemExternal = styled.a`
|
|
||||||
${menuItemStyles};
|
|
||||||
`
|
|
||||||
|
|||||||
@@ -11,14 +11,6 @@ interface IMenuItemProps {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
|
const MenuItem: FC<IMenuItemProps> = ({ children, to }) => {
|
||||||
if (to.match(/^(https?:\/\/)/)) {
|
|
||||||
return (
|
|
||||||
<SC.MenuItemExternal href={to} target="_blank">
|
|
||||||
{children}
|
|
||||||
</SC.MenuItemExternal>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SC.MenuItem to={to} activeClassName="active">
|
<SC.MenuItem to={to} activeClassName="active">
|
||||||
{children}
|
{children}
|
||||||
@@ -46,9 +38,6 @@ export const Sidebar: FC<PropsWithChildren<
|
|||||||
<MenuItem to="/rules">rules</MenuItem>
|
<MenuItem to="/rules">rules</MenuItem>
|
||||||
<MenuItem to="/resources">resources</MenuItem>
|
<MenuItem to="/resources">resources</MenuItem>
|
||||||
<MenuItem to="/archives">tech spotlights</MenuItem>
|
<MenuItem to="/archives">tech spotlights</MenuItem>
|
||||||
<MenuItem to="https://forum.theprogrammershangout.com">
|
|
||||||
forum
|
|
||||||
</MenuItem>
|
|
||||||
</SC.Menu>
|
</SC.Menu>
|
||||||
|
|
||||||
<ThemeToggler />
|
<ThemeToggler />
|
||||||
|
|||||||
@@ -59,7 +59,3 @@ export const menuItemStyles = css`
|
|||||||
export const MenuItem = styled(Link)`
|
export const MenuItem = styled(Link)`
|
||||||
${menuItemStyles};
|
${menuItemStyles};
|
||||||
`
|
`
|
||||||
|
|
||||||
export const MenuItemExternal = styled.a`
|
|
||||||
${menuItemStyles};
|
|
||||||
`
|
|
||||||
|
|||||||
Reference in New Issue
Block a user