This commit is contained in:
Clément Le Bihan
2023-12-27 21:49:59 +01:00
parent af0531bb0c
commit 495380ec43
10 changed files with 53 additions and 26 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ export default function Hoverable({
};
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// eslint-disable-next-line @typescript-eslint/no-explicit-any
return React.cloneElement(React.Children.only(children) as any, {
...webProps,
// if child is Touchable
+1 -1
View File
@@ -1,5 +1,5 @@
import { useEffect, useRef, useState } from 'react';
import { Slider, Text, View, IconButton, Icon } from 'native-base';
import { Slider, View, IconButton, Icon } from 'native-base';
import { MaterialCommunityIcons } from '@expo/vector-icons';
import { Audio } from 'expo-av';
import { VolumeHigh, VolumeSlash } from 'iconsax-react-native';
+2 -2
View File
@@ -1,6 +1,6 @@
import React from 'react';
import { Translate, translate } from '../i18n/i18n';
import { Box, Text, VStack, Progress, Stack } from 'native-base';
import { Translate } from '../i18n/i18n';
import { Box, VStack, Progress, Stack } from 'native-base';
import { useNavigation } from '../Navigation';
import Card from '../components/Card';
import UserAvatar from './UserAvatar';
+1 -9
View File
@@ -1,19 +1,11 @@
import Song from '../../models/Song';
import React from 'react';
import { Image, Platform, View } from 'react-native';
import {
Pressable,
Text,
IconButton,
PresenceTransition,
Icon,
useBreakpointValue,
} from 'native-base';
import { Pressable, Text, PresenceTransition, Icon, useBreakpointValue } from 'native-base';
import { LikeButton } from './SongCardInfoLikeBtn';
import { Ionicons } from '@expo/vector-icons';
import { useQuery } from '../../Queries';
import API from '../../API';
import { MaterialIcons } from '@expo/vector-icons';
import { useLikeSongMutation } from '../../utils/likeSongMutation';
import Hoverable from '../Hoverable';