Skip to content

Commit

Permalink
Revert "sorted pending users as latest first (#5778)" (#5780)
Browse files Browse the repository at this point in the history
This reverts commit e3c8e45.
  • Loading branch information
farhatahmad authored Apr 15, 2024
1 parent e3c8e45 commit f7366d2
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ export default function PendingUsers({ searchInput }) {
const [page, setPage] = useState();
const { isLoading, data: users } = usePendingUsers(searchInput, page);
const { t } = useTranslation();
// sort the users as newest first
const reversedUsers = users?.data.reverse();

return (
<div>
Expand All @@ -37,7 +35,7 @@ export default function PendingUsers({ searchInput }) {
<NoSearchResults text={t('user.search_not_found')} searchInput={searchInput} />
</div>
) : (
<BannedPendingUsersTable users={reversedUsers} pendingTable isLoading={isLoading} pagination={users?.meta} setPage={setPage} />
<BannedPendingUsersTable users={users?.data} pendingTable isLoading={isLoading} pagination={users?.meta} setPage={setPage} />
)
}
</div>
Expand Down

0 comments on commit f7366d2

Please sign in to comment.