lints fix

This commit is contained in:
danis
2023-09-09 19:18:30 +02:00
parent a6d9cb3b40
commit 64640eda55
5 changed files with 4 additions and 17 deletions
+1 -7
View File
@@ -1,20 +1,16 @@
import React, { useMemo } from 'react';
import {
HStack,
VStack,
Heading,
Text,
Pressable,
Box,
Card,
Image,
Flex,
useBreakpointValue,
Column,
ScrollView,
} from 'native-base';
import { SafeAreaView, useColorScheme } from 'react-native';
import { RootState, useSelector } from '../state/Store';
import { SafeAreaView } from 'react-native';
import { SearchContext } from '../views/SearchView';
import { useQueries, useQuery } from '../Queries';
import { translate } from '../i18n/i18n';
@@ -24,7 +20,6 @@ import ArtistCard from './ArtistCard';
import GenreCard from './GenreCard';
import SongCard from './SongCard';
import CardGridCustom from './CardGridCustom';
import TextButton from './TextButton';
import SearchHistoryCard from './HistoryCard';
import Song, { SongWithArtist } from '../models/Song';
import { useNavigation } from '../Navigation';
@@ -259,7 +254,6 @@ const FilterSwitch = () => {
export const SearchResultComponent = () => {
const { stringQuery } = React.useContext(SearchContext);
const { filter } = React.useContext(SearchContext);
const shouldOutput = !!stringQuery.trim();
return shouldOutput ? (
+1 -2
View File
@@ -1,8 +1,7 @@
import { HStack, IconButton, Image, Text } from 'native-base';
import { HStack, Image, Text } from 'native-base';
import Song, { SongWithArtist } from '../models/Song';
import RowCustom from './RowCustom';
import TextButton from './TextButton';
import { MaterialIcons } from '@expo/vector-icons';
type SongRowProps = {
song: Song | SongWithArtist; // TODO: remove Song