File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,10 +63,20 @@ export function CPDashboard() {
6363 const [ error , setError ] = useState ( null ) ;
6464 const darkMode = useSelector ( state => state . theme . darkMode ) ;
6565
66+ // Hide the global back-to-top button — not needed on this page
67+ useEffect ( ( ) => {
68+ const scrollBtn = document . querySelector ( '.back-to-top' ) ;
69+ if ( ! scrollBtn ) return ;
70+ const prevDisplay = scrollBtn . style . display ;
71+ scrollBtn . style . display = 'none' ;
72+ return ( ) => {
73+ scrollBtn . style . display = prevDisplay ;
74+ } ;
75+ } , [ ] ) ;
76+
6677 // Consolidated filter states
6778 const [ pendingFilters , setPendingFilters ] = useState ( DEFAULT_FILTERS ) ;
6879 const [ appliedFilters , setAppliedFilters ] = useState ( DEFAULT_FILTERS ) ;
69-
7080 const [ pagination , setPagination ] = useState ( {
7181 currentPage : 1 ,
7282 totalPages : 5 ,
You can’t perform that action at this time.
0 commit comments