broke my glasses

This commit is contained in:
danis
2023-07-10 23:12:37 +02:00
parent 3a09d10d3b
commit 373128ba53
2 changed files with 23 additions and 5 deletions
+3 -3
View File
@@ -20,8 +20,8 @@ const SongRow = ({ song, onPress }: SongRowProps) => {
style={{ zIndex: 0, aspectRatio: 1, borderRadius: 5 }}
source={{ uri: song.cover }}
alt={song.name}
borderColor={'white'}
borderWidth={1}
borderColor={'white'}
borderWidth={1}
/>
<HStack
style={{
@@ -61,7 +61,7 @@ const SongRow = ({ song, onPress }: SongRowProps) => {
colorScheme="primary"
variant={"outline"}
size="sm"
mr={5}
mr={5}
onPress={onPress}
/>
</HStack>
+20 -2
View File
@@ -5,6 +5,9 @@ import { LoadingView } from '../components/Loading';
import { useNavigation } from '../Navigation';
import API from '../API';
import Artist from '../models/Artist';
import ArtistCard from '../components/ArtistCard';
import CardGridCustom from '../components/CardGridCustom';
import { translate } from '../i18n/i18n';
const colorRange = [
{
@@ -121,7 +124,7 @@ const GenreDetailsView = ({ genreId }: any) => {
size={'100%'}
height={isMobileView ? 200 : 300}
width={'100%'}
backgroundColor={'#20c997'}
backgroundColor={colorRange[Math.floor(Math.random() * 5)]?.code ?? '#364fc7'}
/>
<Flex
flexWrap="wrap"
@@ -130,7 +133,22 @@ const GenreDetailsView = ({ genreId }: any) => {
mt={4}
>
<Box>
{rockArtists?.length ? (
<CardGridCustom
content={rockArtists.slice(0, rockArtists.length).map((artistData) => ({
image: API.getArtistIllustration(artistData.id),
name: artistData.name,
id: artistData.id,
onPress: () => {
API.createSearchHistoryEntry(artistData.name, 'artist');
navigation.navigate('Artist', { artistId: artistData.id });
},
}))}
cardComponent={ArtistCard}
/>
) : (
<Text>{translate('errNoResults')}</Text>
)}
</Box>
<Box>