diff --git a/src/shared/types/user-rating-type.ts b/src/shared/types/user-rating-type.ts index 197eb82..72572c8 100644 --- a/src/shared/types/user-rating-type.ts +++ b/src/shared/types/user-rating-type.ts @@ -1,6 +1,8 @@ export interface IUserRatings { user_id: number; username: string; + first_name: string; + last_name: string; report_count: number; likes_given_count: number; likes_received_count: number; diff --git a/src/widgets/tables/VolunteersTable/VolunteersTable.scss b/src/widgets/tables/VolunteersTable/VolunteersTable.scss index 0598d90..6e99d9f 100644 --- a/src/widgets/tables/VolunteersTable/VolunteersTable.scss +++ b/src/widgets/tables/VolunteersTable/VolunteersTable.scss @@ -22,14 +22,14 @@ width: 100%; height: 100%; display: grid; - grid-template-columns: 80px 300px 300px 200px 180px 200px 150px; - + grid-template-columns: 80px 300px 300px 200px 200px 200px 200px; td { display: flex; align-items: center; height: 100%; background-color: rgb(244, 244, 244); + justify-content: center; } td, @@ -61,6 +61,9 @@ font-size: 20px; font-weight: 500; line-height: 20px; + display: flex; + align-items: center; + justify-content: center; } diff --git a/src/widgets/tables/VolunteersTable/VolunteersTable.tsx b/src/widgets/tables/VolunteersTable/VolunteersTable.tsx index 92816d1..93c719a 100644 --- a/src/widgets/tables/VolunteersTable/VolunteersTable.tsx +++ b/src/widgets/tables/VolunteersTable/VolunteersTable.tsx @@ -16,7 +16,7 @@ const VolunteersTable = () => { const params = [ { param: "№" }, { param: "Активист" }, - { param: "Фамилия имя"}, + { param: "Имя Фамилия"}, { param: "Добавлено дорог", handleClick() { @@ -125,7 +125,7 @@ const VolunteersTable = () => { {hideEmail(user.username)} - {user.username} + {user.first_name} {user.last_name} {user.report_count} {user.likes_received_count} {user.likes_given_count}