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' }}>
|
||||
{rolesList.map(({ address, role }, index) => (
|
||||
<p key={index}>
|
||||
•{' '}
|
||||
<Link to={() => {}} className='quote-link'>
|
||||
u/{address}
|
||||
</Link>
|
||||
: {role}
|
||||
</p>
|
||||
))}
|
||||
{roles ? (
|
||||
rolesList.map(({ address, role }, index) => (
|
||||
<p key={index}>
|
||||
•{' '}
|
||||
<Link to={() => {}} className='quote-link'>
|
||||
u/{address}
|
||||
</Link>
|
||||
: {role}
|
||||
</p>
|
||||
))
|
||||
) : (
|
||||
<p>This board doesn't have moderators yet.</p>
|
||||
)}
|
||||
</BoardForm>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user