Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit ee8dc71

Browse files
authored
Merge pull request #99 from PapillonApp/debug/ed/alerts
chore: Update ServiceSelector to show alert for service in development
2 parents ceb22db + 1f494ad commit ee8dc71

File tree

1 file changed

+23
-12
lines changed

1 file changed

+23
-12
lines changed

src/views/login/ServiceSelector.tsx

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,29 @@ const ServiceSelector: Screen<"ServiceSelector"> = ({ navigation }) => {
4545
playSound();
4646
break;
4747
case "ed":
48-
showAlert({
49-
title: "Service en développement",
50-
message: "Ce service est actuellement en développement. Certaines fonctionnalités peuvent ne pas fonctionner correctement ou ne pas être disponibles.",
51-
actions: [
52-
{
53-
title: "Retour",
54-
onPress: () => {},
55-
icon: <Undo2 />,
56-
primary: false,
57-
},
58-
]
59-
});
48+
if(__DEV__) {
49+
showAlert({
50+
title: "[DEBUG] Service en développement",
51+
message: "Ce service est actuellement en développement. Certaines fonctionnalités peuvent ne pas fonctionner correctement ou ne pas être disponibles.",
52+
actions: [
53+
{
54+
title: "Annuler",
55+
onPress: () => {},
56+
icon: <Undo2 />,
57+
primary: false,
58+
},
59+
{
60+
title: "Continuer",
61+
onPress: () => {
62+
navigation.navigate("SkolengoAuthenticationSelector");
63+
playSound();
64+
},
65+
icon: <Check />,
66+
primary: true,
67+
}
68+
]
69+
});
70+
} else UnsupportedAlert();
6071
break;
6172
case "skolengo":
6273
// TODO : Remove this alert when Skolengo is fully supported

0 commit comments

Comments
 (0)