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' }}> <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>