mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
feat(AdminListModal): inform the user when a board doesn't have moderators yet
This commit is contained in:
@@ -58,15 +58,19 @@ const AdminListModal = ({ isOpen, closeModal, roles }) => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<BoardForm selectedStyle={selectedStyle} style={{ all: 'unset' }}>
|
<BoardForm selectedStyle={selectedStyle} style={{ all: 'unset' }}>
|
||||||
{rolesList.map(({ address, role }, index) => (
|
{roles ? (
|
||||||
<p key={index}>
|
rolesList.map(({ address, role }, index) => (
|
||||||
•{' '}
|
<p key={index}>
|
||||||
<Link to={() => {}} className='quote-link'>
|
•{' '}
|
||||||
u/{address}
|
<Link to={() => {}} className='quote-link'>
|
||||||
</Link>
|
u/{address}
|
||||||
: {role}
|
</Link>
|
||||||
</p>
|
: {role}
|
||||||
))}
|
</p>
|
||||||
|
))
|
||||||
|
) : (
|
||||||
|
<p>This board doesn't have moderators yet.</p>
|
||||||
|
)}
|
||||||
</BoardForm>
|
</BoardForm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user