mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-06 23:43:45 +02:00
feat: link to the forum
This commit is contained in:
@@ -11,6 +11,14 @@ 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}
|
||||
@@ -37,6 +45,9 @@ 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 />
|
||||
|
||||
Reference in New Issue
Block a user