File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ type Props = {
10
10
*/
11
11
const SearchBar : React . FC < Props > = ( { onSearch } ) => {
12
12
// tracks current user search query
13
- const [ searchParams ] = useSearchParams ( )
14
- // initialize both query and previous query with searchParam if exists
13
+ const [ searchParams ] = useSearchParams ( )
14
+ // initialize both query and previous query with searchParam if exists
15
15
const [ query , setQuery ] = useState ( ( ) => searchParams . get ( 'searchQuery' ) || "" ) ;
16
16
const [ previousQuery , setPreviousQuery ] = useState ( ( ) => searchParams . get ( 'searchQuery' ) || "" ) ;
17
17
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ const useFetchThemes = (
37
37
38
38
const response = await galleryApiFetch ( finalUrl ) ;
39
39
const result = await response . json ( ) ;
40
- apiThemes = result . data ;
40
+ apiThemes = result . data ;
41
41
} else {
42
42
apiThemes = Placeholders . themes ;
43
43
}
Original file line number Diff line number Diff line change 5
5
* @param options additional options passed to fetch
6
6
*/
7
7
const galleryApiFetch = ( url : string , options = { } ) => {
8
- return fetch ( url , {
9
- ...options ,
10
- credentials : 'include' ,
11
- } ) ;
8
+ return fetch ( url , {
9
+ ...options ,
10
+ credentials : 'include' ,
11
+ } ) ;
12
12
}
13
13
14
14
export {
15
- galleryApiFetch
15
+ galleryApiFetch
16
16
}
You can’t perform that action at this time.
0 commit comments