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 title="Mod Zone">
|
||||
{user?.mod ? (
|
||||
<DropdownSection title="Mod Zone">
|
||||
<DropdownItem
|
||||
key="remove"
|
||||
startContent={<X />}
|
||||
|
@ -236,9 +236,6 @@ export default function PostCard({
|
|||
>
|
||||
Remove
|
||||
</DropdownItem>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
{user?.admin && !post.author.mod ? (
|
||||
<DropdownItem
|
||||
key="promote-mod"
|
||||
|
@ -275,6 +272,9 @@ export default function PostCard({
|
|||
<></>
|
||||
)}
|
||||
</DropdownSection>
|
||||
) : (
|
||||
<></>
|
||||
)}
|
||||
</DropdownMenu>
|
||||
</Dropdown>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue