Skip to content

Commit 33f25c2

Browse files
committed
fix: prettier
1 parent 20c986d commit 33f25c2

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/components/SearchBar/SearchBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ type Props = {
1010
*/
1111
const SearchBar: React.FC<Props> = ({ onSearch }) => {
1212
// 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
1515
const [query, setQuery] = useState(() => searchParams.get('searchQuery') || "");
1616
const [previousQuery, setPreviousQuery] = useState(() => searchParams.get('searchQuery') || "");
1717

src/hooks/useFetchThemes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const useFetchThemes = (
3737

3838
const response = await galleryApiFetch(finalUrl);
3939
const result = await response.json();
40-
apiThemes = result.data;
40+
apiThemes = result.data;
4141
} else {
4242
apiThemes = Placeholders.themes;
4343
}

src/services/apiService.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* @param options additional options passed to fetch
66
*/
77
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+
});
1212
}
1313

1414
export {
15-
galleryApiFetch
15+
galleryApiFetch
1616
}

0 commit comments

Comments
 (0)