Skip to content

Commit

Permalink
Merge pull request #10 from AxelRENAULT92/link-cta-endscreen
Browse files Browse the repository at this point in the history
Link cta endscreen
  • Loading branch information
arenault-pass authored Feb 21, 2024
2 parents 5bbdd4b + d667ad0 commit 37a9fb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions screens/Endscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { View, Text, ImageBackground, TouchableOpacity } from "react-native";
import React from "react";
import { SafeAreaView } from "react-native-safe-area-context";
import { StatusBar } from "expo-status-bar";
import { HomeIcon } from "react-native-heroicons/solid";
import { HomeIcon, ArrowPathIcon } from "react-native-heroicons/solid";
import { useNavigation } from "@react-navigation/native";
import { useImage } from "../provider/ImageContext";

Expand Down Expand Up @@ -36,7 +36,7 @@ export default function Endscreen() {
<HomeIcon color="white" size="30" className="" />
</TouchableOpacity>
<Text className="text-white absolute left-28 text-2xl font-black">
Classement
Fin de Partie
</Text>
</View>
{/* Ranking Table */}
Expand All @@ -57,6 +57,7 @@ export default function Endscreen() {
>
<Text className="text-cyan-900 text-sm text-center font-bold">
Recommencer
<ArrowPathIcon color="#164e63" className=" "/>
</Text>
</TouchableOpacity>
</View>
Expand Down
8 changes: 6 additions & 2 deletions screens/Gamescreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
ImageBackground,
} from "react-native";
import React, { useEffect, useState } from "react";
import { ActivityIndicator } from "react-native"
import { SafeAreaView } from "react-native-safe-area-context";
import { StatusBar } from "expo-status-bar";
import AsyncStorage from "@react-native-async-storage/async-storage";
Expand Down Expand Up @@ -140,7 +141,7 @@ export default function Gamescreen() {
style={{ backgroundColor: "rgba(255, 255, 255, 0.1)" }}
className="flex justify-center items-center m-4 p-4 rounded-lg"
>
<Text className=" text-white font-black text-lg text-dark-400 m-2">
<Text className=" text-white font-black text-lg m-2">
On en est où ?
</Text>
<Progress.Bar
Expand All @@ -163,7 +164,10 @@ export default function Gamescreen() {
renderItem={renderQuestion}
/>
) : (
<Text className=" text-white">Loading questions...</Text>
<>
<ActivityIndicator size="large" className=" m-4"/>
<Text className=" text-white font-semibold text-center text-sm">Loading questions...</Text>
</>
)}
</View>
{/* Button */}
Expand Down

0 comments on commit 37a9fb6

Please sign in to comment.