mirror of
https://github.com/Ategon/Jamjar.git
synced 2025-02-12 06:16:21 +00:00
Only show mod zone if user is a mod
This commit is contained in:
parent
743c217ab2
commit
b816523cf9
1 changed files with 41 additions and 41 deletions
|
@ -201,8 +201,8 @@ export default function PostCard({
|
||||||
<></>
|
<></>
|
||||||
)}
|
)}
|
||||||
</DropdownSection>
|
</DropdownSection>
|
||||||
<DropdownSection title="Mod Zone">
|
|
||||||
{user?.mod ? (
|
{user?.mod ? (
|
||||||
|
<DropdownSection title="Mod Zone">
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
key="remove"
|
key="remove"
|
||||||
startContent={<X />}
|
startContent={<X />}
|
||||||
|
@ -236,9 +236,6 @@ export default function PostCard({
|
||||||
>
|
>
|
||||||
Remove
|
Remove
|
||||||
</DropdownItem>
|
</DropdownItem>
|
||||||
) : (
|
|
||||||
<></>
|
|
||||||
)}
|
|
||||||
{user?.admin && !post.author.mod ? (
|
{user?.admin && !post.author.mod ? (
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
key="promote-mod"
|
key="promote-mod"
|
||||||
|
@ -275,6 +272,9 @@ export default function PostCard({
|
||||||
<></>
|
<></>
|
||||||
)}
|
)}
|
||||||
</DropdownSection>
|
</DropdownSection>
|
||||||
|
) : (
|
||||||
|
<></>
|
||||||
|
)}
|
||||||
</DropdownMenu>
|
</DropdownMenu>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue