From 64640eda55d3a8c0a3cb2d26832aca1aaac162ac Mon Sep 17 00:00:00 2001 From: danis Date: Sat, 9 Sep 2023 19:18:30 +0200 Subject: [PATCH] lints fix --- front/Theme.tsx | 6 ------ front/components/SearchResult.tsx | 8 +------- front/components/SongRow.tsx | 3 +-- front/views/ArtistDetailsView.tsx | 2 +- front/views/GenreDetailsView.tsx | 2 +- 5 files changed, 4 insertions(+), 17 deletions(-) diff --git a/front/Theme.tsx b/front/Theme.tsx index ab23d2d..6d7fc57 100644 --- a/front/Theme.tsx +++ b/front/Theme.tsx @@ -4,15 +4,9 @@ import { useEffect } from 'react'; const ThemeProvider = ({ children }: { children: JSX.Element }) => { const colorScheme = useColorScheme(); - const config = { - dependencies: { - 'linear-gradient': require('expo-linear-gradient').LinearGradient, - }, - }; return ( { export const SearchResultComponent = () => { const { stringQuery } = React.useContext(SearchContext); - const { filter } = React.useContext(SearchContext); const shouldOutput = !!stringQuery.trim(); return shouldOutput ? ( diff --git a/front/components/SongRow.tsx b/front/components/SongRow.tsx index d88eaf6..4a61c83 100644 --- a/front/components/SongRow.tsx +++ b/front/components/SongRow.tsx @@ -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 diff --git a/front/views/ArtistDetailsView.tsx b/front/views/ArtistDetailsView.tsx index 555157e..e7a7b03 100644 --- a/front/views/ArtistDetailsView.tsx +++ b/front/views/ArtistDetailsView.tsx @@ -2,7 +2,7 @@ import { Box, Heading, useBreakpointValue, ScrollView, useColorModeValue } from import { useQuery } from '../Queries'; import { LoadingView } from '../components/Loading'; import API from '../API'; -import Song, { SongWithArtist } from '../models/Song'; +import Song from '../models/Song'; import SongRow from '../components/SongRow'; import { Key } from 'react'; import { RouteProps, useNavigation } from '../Navigation'; diff --git a/front/views/GenreDetailsView.tsx b/front/views/GenreDetailsView.tsx index 8ee28ee..8161f8c 100644 --- a/front/views/GenreDetailsView.tsx +++ b/front/views/GenreDetailsView.tsx @@ -1,4 +1,4 @@ -import { Box, Flex, Heading, useBreakpointValue, ScrollView, useColorModeValue } from 'native-base'; +import { Flex, Heading, useBreakpointValue, ScrollView, useColorModeValue } from 'native-base'; import { useQueries, useQuery } from '../Queries'; import { LoadingView } from '../components/Loading'; import { RouteProps, useNavigation } from '../Navigation';