clean code IV
This commit is contained in:
@@ -19,7 +19,6 @@ interface SearchContextType {
|
||||
songData: Song[];
|
||||
artistData: Artist[];
|
||||
genreData: Genre[];
|
||||
// favoriteData: Song[];
|
||||
isLoadingSong: boolean;
|
||||
isLoadingArtist: boolean;
|
||||
isLoadingGenre: boolean;
|
||||
@@ -33,7 +32,6 @@ export const SearchContext = React.createContext<SearchContextType>({
|
||||
songData: [],
|
||||
artistData: [],
|
||||
genreData: [],
|
||||
// favoriteData: [],
|
||||
isLoadingSong: false,
|
||||
isLoadingArtist: false,
|
||||
isLoadingGenre: false,
|
||||
@@ -62,11 +60,6 @@ const SearchView = (props: RouteProps<SearchViewProps>) => {
|
||||
{ enabled: !!stringQuery }
|
||||
);
|
||||
|
||||
// const { isLoading: isLoadingFavorite, data: favoriteData = [] } = useQuery(
|
||||
// API.getFavorites(),
|
||||
// { enabled: true }
|
||||
// )
|
||||
|
||||
const updateFilter = (newData: Filter) => {
|
||||
// called when the filter is changed
|
||||
setFilter(newData);
|
||||
@@ -87,7 +80,6 @@ const SearchView = (props: RouteProps<SearchViewProps>) => {
|
||||
songData,
|
||||
artistData,
|
||||
genreData,
|
||||
// favoriteData,
|
||||
isLoadingSong,
|
||||
isLoadingArtist,
|
||||
isLoadingGenre,
|
||||
|
||||
Reference in New Issue
Block a user