feat(AdminListModal): inform the user when a board doesn't have moderators yet

This commit is contained in:
plebeius.eth
2023-09-29 20:17:49 +02:00
parent 631a359edd
commit 8a81177dd2
+13 -9
View File
@@ -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>