File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,9 @@ const Search: React.FC = () => {
4646 const { data : courtTreeData } = useCourtTree ( ) ;
4747 const items = useMemo ( ( ) => {
4848 if ( ! isUndefined ( courtTreeData ) ) {
49- const items = [ rootCourtToItems ( courtTreeData . court ! , "id" ) ] ;
50- items . push ( { label : "All Courts" , value : "all" } ) ;
51- return items ;
49+ const courts = [ rootCourtToItems ( courtTreeData . court ! , "id" ) ] ;
50+ courts . push ( { label : "All Courts" , value : "all" } ) ;
51+ return courts ;
5252 }
5353 return undefined ;
5454 } , [ courtTreeData ] ) ;
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ const Context = createContext<IIsListProvider>({
1616const IsListProvider : React . FC < { children ?: React . ReactNode } > = ( { children } ) => {
1717 const [ isListStorage , setIsListStorage ] = useLocalStorage ( "isList" , false ) ;
1818 const [ isList , setIsListState ] = useToggle ( isListStorage ?? false ) ;
19- const setIsList = ( value : boolean ) => {
20- setIsListState ( value ) ;
21- setIsListStorage ( value ) ;
19+ const setIsList = ( toggle : boolean ) => {
20+ setIsListState ( toggle ) ;
21+ setIsListStorage ( toggle ) ;
2222 } ;
2323
2424 const value = {
You can’t perform that action at this time.
0 commit comments