Add events team link to nav
This commit is contained in:
parent
f2b546b60c
commit
6d9f1cd561
@ -67,6 +67,14 @@ export default function (props: {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isET(): boolean {
|
||||||
|
const { permissions } = props;
|
||||||
|
|
||||||
|
if (typeof permissions === "undefined") return false;
|
||||||
|
|
||||||
|
return Boolean([1 << 3, 1 << 4, 1 << 12].find((int) => permissions & int));
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Box as="section" pb={{ base: "6" }}>
|
<Box as="section" pb={{ base: "6" }}>
|
||||||
@ -109,6 +117,13 @@ export default function (props: {
|
|||||||
<Link href="https://ccdiscussion.com" size="lg">
|
<Link href="https://ccdiscussion.com" size="lg">
|
||||||
Community
|
Community
|
||||||
</Link>
|
</Link>
|
||||||
|
<Link
|
||||||
|
display={isET() ? undefined : "none"}
|
||||||
|
href="/events-team"
|
||||||
|
size="lg"
|
||||||
|
>
|
||||||
|
Events Team
|
||||||
|
</Link>
|
||||||
<Link
|
<Link
|
||||||
display={hasMod() ? undefined : "none"}
|
display={hasMod() ? undefined : "none"}
|
||||||
href="/mod-queue"
|
href="/mod-queue"
|
||||||
@ -184,6 +199,9 @@ export default function (props: {
|
|||||||
<Link href="/team">Our Team</Link>
|
<Link href="/team">Our Team</Link>
|
||||||
<Link href="/support">Support</Link>
|
<Link href="/support">Support</Link>
|
||||||
<Link href="https://ccdiscussion.com">Community</Link>
|
<Link href="https://ccdiscussion.com">Community</Link>
|
||||||
|
<Link href="/events-team" display={isET() ? undefined : "none"}>
|
||||||
|
Events Team
|
||||||
|
</Link>
|
||||||
<Link href="/mod-queue" display={hasMod() ? undefined : "none"}>
|
<Link href="/mod-queue" display={hasMod() ? undefined : "none"}>
|
||||||
Moderation
|
Moderation
|
||||||
</Link>
|
</Link>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user