diff --git a/front/components/SongRow.tsx b/front/components/SongRow.tsx index 5e8ad24..d2a2276 100644 --- a/front/components/SongRow.tsx +++ b/front/components/SongRow.tsx @@ -12,24 +12,24 @@ type SongRowProps = { }; type DurationInfoProps = { - length: number; -} + length: number; +}; -const DurationInfo = ({length}: DurationInfoProps) => { - const minutes = Math.floor(length / 60); - const seconds = Math.round(length - minutes * 60); +const DurationInfo = ({ length }: DurationInfoProps) => { + const minutes = Math.floor(length / 60); + const seconds = Math.round(length - minutes * 60); - return ( - - {`${minutes}'${seconds}` ?? '--.--'} - - ); -} + return ( + + {`${minutes}'${seconds}` ?? '--.--'} + + ); +}; const SongRow = ({ song, onPress, handleLike, isLiked }: SongRowProps) => { return ( @@ -75,7 +75,7 @@ const SongRow = ({ song, onPress, handleLike, isLiked }: SongRowProps) => { > {song.artistId ?? 'artist'} - +