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
+6 -2
View File
@@ -58,7 +58,8 @@ const AdminListModal = ({ isOpen, closeModal, roles }) => {
}} }}
> >
<BoardForm selectedStyle={selectedStyle} style={{ all: 'unset' }}> <BoardForm selectedStyle={selectedStyle} style={{ all: 'unset' }}>
{rolesList.map(({ address, role }, index) => ( {roles ? (
rolesList.map(({ address, role }, index) => (
<p key={index}> <p key={index}>
{' '} {' '}
<Link to={() => {}} className='quote-link'> <Link to={() => {}} className='quote-link'>
@@ -66,7 +67,10 @@ const AdminListModal = ({ isOpen, closeModal, roles }) => {
</Link> </Link>
: {role} : {role}
</p> </p>
))} ))
) : (
<p>This board doesn't have moderators yet.</p>
)}
</BoardForm> </BoardForm>
</div> </div>
</div> </div>