Skip to content

Commit

Permalink
reset rowPages to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
shema-surge committed Jul 25, 2024
1 parent 0a9248b commit fa200c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Pages/AdminDashboard/AdminDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function AdminDashboard() {

useEffect(() => {
async function getUsers() {
const response = await axios.get(`${process.env.BACKEND_URL}/api/users?page=${userPage}&rowsPerPage=2`,
const response = await axios.get(`${process.env.BACKEND_URL}/api/users?page=${userPage}&rowsPerPage=5`,
{
headers: {
'authorization': `Bearer ${token}`
Expand Down
2 changes: 1 addition & 1 deletion src/Pages/UsersAdminDash/UsersAdminDash.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function UsersAdminDash() {

useEffect(() => {
async function fetchData() {
const response = await axios.get(`${process.env.BACKEND_URL}/api/users?page=${page}&rowsPerPage=2`,
const response = await axios.get(`${process.env.BACKEND_URL}/api/users?page=${page}&rowsPerPage=5`,
{
headers: {
'authorization': `Bearer ${token}`
Expand Down

0 comments on commit fa200c3

Please sign in to comment.