diff --git a/front/views/SongLobbyView.tsx b/front/views/SongLobbyView.tsx
index f369ef3..3845430 100644
--- a/front/views/SongLobbyView.tsx
+++ b/front/views/SongLobbyView.tsx
@@ -1,6 +1,5 @@
import { useRoute } from "@react-navigation/native";
-import { Image, View } from "react-native"
-import { Button, Divider, IconButton, List, Surface, Text } from "react-native-paper";
+import { Button, Divider, Box, Center, Image, Text, VStack, HStack, PresenceTransition, Icon } from "native-base";
import API from "../API";
import { useQuery } from 'react-query';
import LoadingComponent from "../components/loading";
@@ -8,6 +7,7 @@ import React, { useEffect, useState } from "react";
import logo from '../assets/cover.png';
import { translate } from "../i18n/i18n";
import formatDuration from "format-duration";
+import { Ionicons, FontAwesome } from '@expo/vector-icons';
interface SongLobbyProps {
// The unique identifier to find a song
@@ -27,54 +27,60 @@ const SongLobbyView = () => {
}, [chaptersOpen]);
useEffect(() => {}, [songQuery.isLoading]);
if (songQuery.isLoading || scoresQuery.isLoading)
- return
+ return
-
+
return (
-
-
-
+
+
+
-
-
-
-
- {songQuery.data!.title}
+
+
+
+
+ {songQuery.data!.title}
{'3:20'} - {translate('level')} { chaptersQuery.data!.reduce((a, b) => a + b.difficulty, 0) / chaptersQuery.data!.length }
-
-
-
-
-
-
- {translate('bestScore') }
+ }>{ translate('playBtn') }
+
+
+
+
+
+ {translate('bestScore') }
{scoresQuery.data!.sort()[0]?.score}
-
-
- {translate('lastScore') }
+
+
+ {translate('lastScore') }
{scoresQuery.data!.slice(-1)[0]!.score}
-
-
+
+
{songQuery.data!.description}
- setChaptersOpen(!chaptersOpen)}>
- { chaptersQuery.isLoading && }
- { !chaptersQuery.isLoading && chaptersQuery.data!.map((chapter) =>
- <>
-
-
- >
- )}
-
-
+
+
+
+
+ { chaptersQuery.isLoading && }
+ { !chaptersQuery.isLoading &&
+ }>
+ { chaptersQuery.data!.map((chapter) =>
+
+ {chapter.name}
+
+ {`${translate('level')} ${chapter.difficulty} - ${formatDuration((chapter.end - chapter.start) * 1000)}`}
+
+
+ )}
+
+ }
+
+
)
}