larxius commited on
Commit
6f3247b
·
verified ·
1 Parent(s): 30e3546

Update frontend/src/pages/ReportsHistory.jsx

Browse files
frontend/src/pages/ReportsHistory.jsx CHANGED
@@ -1,4 +1,4 @@
1
- import { useState, useEffect } from 'react';
2
  import { useNavigate, Link, useLocation } from 'react-router-dom';
3
  import { useAuth } from '../components/AuthContext';
4
  import { OrganizationSelector } from '../components/OrganizationSelector';
@@ -29,7 +29,7 @@ export const ReportsHistory = () => {
29
  const [sortDirection, setSortDirection] = useState('desc');
30
 
31
  const [currentPage, setCurrentPage] = useState(1);
32
- const itemsPerPage = 15;
33
 
34
  useEffect(() => {
35
  setCurrentPage(1);
 
1
+ import React, { useState, useEffect } from 'react';
2
  import { useNavigate, Link, useLocation } from 'react-router-dom';
3
  import { useAuth } from '../components/AuthContext';
4
  import { OrganizationSelector } from '../components/OrganizationSelector';
 
29
  const [sortDirection, setSortDirection] = useState('desc');
30
 
31
  const [currentPage, setCurrentPage] = useState(1);
32
+ const [itemsPerPage, setItemsPerPage] = useState(15);
33
 
34
  useEffect(() => {
35
  setCurrentPage(1);