Renamed getGenres and getArtists to getAllGenres and getAllArtists and removed HomeNew from navigation

This commit is contained in:
Clément Le Bihan
2023-12-06 15:03:32 +01:00
parent f9cb289eff
commit 81717ec5b1
6 changed files with 7 additions and 13 deletions
+2 -2
View File
@@ -43,8 +43,8 @@ const SearchBarComponent = () => {
const [query, setQuery] = React.useState('');
const [genre, setGenre] = React.useState({} as Genre | undefined);
const [artist, setArtist] = React.useState('');
const artistsQuery = useQuery(API.getArtists());
const genresQuery = useQuery(API.getGenres());
const artistsQuery = useQuery(API.getAllArtists());
const genresQuery = useQuery(API.getAllGenres());
if (artistsQuery.isLoading || genresQuery.isLoading) {
return <LoadingView />;