From 2d90c6eec12fe482586d03a4ea77059f853061e0 Mon Sep 17 00:00:00 2001 From: danis Date: Fri, 22 Sep 2023 15:50:26 +0200 Subject: [PATCH] pretty --- front/components/SongRow.tsx | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) 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'} - +