added name surname to volunteers page

This commit is contained in:
ariari04 2024-05-29 15:51:41 +06:00
parent 545285f1c3
commit 5b5feaa43f
3 changed files with 9 additions and 4 deletions

View File

@ -1,6 +1,8 @@
export interface IUserRatings { export interface IUserRatings {
user_id: number; user_id: number;
username: string; username: string;
first_name: string;
last_name: string;
report_count: number; report_count: number;
likes_given_count: number; likes_given_count: number;
likes_received_count: number; likes_received_count: number;

View File

@ -22,14 +22,14 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
display: grid; display: grid;
grid-template-columns: 80px 300px 300px 200px 180px 200px 150px; grid-template-columns: 80px 300px 300px 200px 200px 200px 200px;
td { td {
display: flex; display: flex;
align-items: center; align-items: center;
height: 100%; height: 100%;
background-color: rgb(244, 244, 244); background-color: rgb(244, 244, 244);
justify-content: center;
} }
td, td,
@ -61,6 +61,9 @@
font-size: 20px; font-size: 20px;
font-weight: 500; font-weight: 500;
line-height: 20px; line-height: 20px;
display: flex;
align-items: center;
justify-content: center;
} }

View File

@ -16,7 +16,7 @@ const VolunteersTable = () => {
const params = [ const params = [
{ param: "№" }, { param: "№" },
{ param: "Активист" }, { param: "Активист" },
{ param: "Фамилия имя"}, { param: "Имя Фамилия"},
{ {
param: "Добавлено дорог", param: "Добавлено дорог",
handleClick() { handleClick() {
@ -125,7 +125,7 @@ const VolunteersTable = () => {
<td id="volunteers-user-cell"> <td id="volunteers-user-cell">
{hideEmail(user.username)} {hideEmail(user.username)}
</td> </td>
<td>{user.username}</td> <td>{user.first_name} {user.last_name}</td>
<td>{user.report_count}</td> <td>{user.report_count}</td>
<td>{user.likes_received_count}</td> <td>{user.likes_received_count}</td>
<td>{user.likes_given_count}</td> <td>{user.likes_given_count}</td>