1- import React from 'react' ;
2- import { Text , StyleSheet , Pressable } from 'react-native' ;
3- import { useNavigation } from '@react-navigation/native' ;
1+ import React from 'react'
2+ import { Text , StyleSheet , Pressable } from 'react-native'
3+ import { useNavigation } from '@react-navigation/native'
44
5- import { ConfigContext } from '~/contexts/config' ;
6- import { ThemeContext } from '~/contexts/theme' ;
7- import { urlCover } from '~/utils/url' ;
8- import CustomFlat from '~/components/lists/CustomFlat' ;
9- import ImageError from '~/components/ImageError' ;
10- import mainStyles from '~/styles/main' ;
11- import OptionsArtists from '~/components/options/OptionsArtists' ;
12- import size from '~/styles/size' ;
5+ import { ConfigContext } from '~/contexts/config'
6+ import { ThemeContext } from '~/contexts/theme'
7+ import { urlCover } from '~/utils/url'
8+ import CustomFlat from '~/components/lists/CustomFlat'
9+ import ImageError from '~/components/ImageError'
10+ import mainStyles from '~/styles/main'
11+ import OptionsArtists from '~/components/options/OptionsArtists'
12+ import size from '~/styles/size'
1313
1414const HorizontalArtists = ( { artists, onPress = ( ) => { } } ) => {
15- const navigation = useNavigation ( ) ;
15+ const navigation = useNavigation ( )
1616 const theme = React . useContext ( ThemeContext )
1717 const config = React . useContext ( ConfigContext )
1818 const [ indexOptions , setIndexOptions ] = React . useState ( - 1 )
@@ -38,7 +38,7 @@ const HorizontalArtists = ({ artists, onPress = () => { } }) => {
3838 />
3939 < Text numberOfLines = { 1 } style = { { color : theme . primaryText , fontSize : size . text . medium , marginBottom : 2 , width : 100 , textAlign : 'center' } } > { item . name } </ Text >
4040 </ Pressable >
41- ) , [ theme , config , onPress ] ) ;
41+ ) , [ theme , config , onPress ] )
4242
4343 return (
4444 < >
@@ -70,4 +70,4 @@ const styles = StyleSheet.create({
7070 } ,
7171} )
7272
73- export default HorizontalArtists ;
73+ export default HorizontalArtists
0 commit comments