My all code :
mport Modal from 'flarum/components/Modal';
function Yeni(user) {
return (
<li style="width:100%;list-style:none;margin-left:10px" data-id={user.id()}>
<table style="width:100%">
<tr>
<td>{user.id()}</td>
</tr>
</table>
<hr style="margin-top: 10px;margin-bottom: 10px;"></hr>
</li>
);
}
export default class DenemeModal extends Modal {
init() {
super.init();
}
className() {
return 'DenemeModal Modal--medium';
}
title() {
return 'User';
}
content() {
return (
<div>
{app.store.all('users').map(Yeni)}
</div>
);
}
}
when 'deneme' user - login and click button and open modal ->
https://pasteboard.co/I5AjmTZ.png
when 'alshain' user - login and click button and open modal ->
https://pasteboard.co/I5AjBAr.png
What can i do π