страница пользователей

This commit is contained in:
gotika 2024-09-04 07:09:36 +03:00
parent 2479f5e05d
commit ba358f05f6
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,13 @@
import React from 'react';
const UserActions = () => {
return (
<div>
<button>Заблокировать</button>
<button>Удалить</button>
<button>Сменить пароль</button>
</div>
);
};
export default UserActions;

View File

@ -0,0 +1,22 @@
import React from 'react';
import UserActions from '../components/userActions';
const Users = () => {
const users = ['User1', 'User2', 'User3']; //заглушка(потом можно убрать)
return (
<div>
<h2>Пользователи</h2>
<ul>
{users.map((user, index) => (
<li key={index}>
{user}
<UserActions />
</li>
))}
</ul>
</div>
);
};
export default Users;