@@ -2,7 +2,7 @@ import { useQuery } from '@connectrpc/connect-query';
22import { faStar } from '@fortawesome/free-solid-svg-icons' ;
33import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' ;
44import { Button , Empty , Flex , Pagination } from 'antd' ;
5- import { useEffect } from 'react' ;
5+ import { useEffect , useState } from 'react' ;
66
77import { LoadingState } from '@ui/features/common' ;
88import { listProjects } from '@ui/gen/api/service/v1alpha1/service-KargoService_connectquery' ;
@@ -16,12 +16,11 @@ import { useStarProjects } from './use-star-projects';
1616
1717const PAGE_SIZE_KEY = 'projects-page-size' ;
1818const PAGE_NUMBER_KEY = 'projects-page-number' ;
19- const FILTER_KEY = 'projects-filter' ;
2019
2120export const ProjectsList = ( ) => {
2221 const [ pageSize , setPageSize ] = useLocalStorage ( PAGE_SIZE_KEY , 10 ) ;
2322 const [ page , setPage ] = useLocalStorage ( PAGE_NUMBER_KEY , 1 ) ;
24- const [ filter , setFilter ] = useLocalStorage ( FILTER_KEY , '' ) ;
23+ const [ filter , setFilter ] = useState ( '' ) ;
2524 const [ starredProjectsView , setStarredProjectsView ] = useLocalStorage (
2625 'starred-projects-view' ,
2726 false
0 commit comments