Fix types

This commit is contained in:
2023-11-29 21:54:09 +01:00
parent c0bc611268
commit 3becdcff46
3 changed files with 5 additions and 3 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
import { HStack, IconButton, Image, Text } from 'native-base';
import Song, { SongWithArtist } from '../models/Song';
import Song from '../models/Song';
import RowCustom from './RowCustom';
import TextButton from './TextButton';
import { MaterialIcons } from '@expo/vector-icons';
import DurationComponent from './DurationComponent';
type SongRowProps = {
song: Song | SongWithArtist; // TODO: remove Song
song: Song;
isLiked: boolean;
onPress: () => void;
handleLike: (state: boolean, songId: number) => Promise<void>;