Skip to content

Commit

Permalink
Merge pull request #99 from PapillonApp/debug/ed/alerts
Browse files Browse the repository at this point in the history
chore: Update ServiceSelector to show alert for service in development
  • Loading branch information
tryon-dev authored Aug 30, 2024
2 parents ceb22db + 1f494ad commit ee8dc71
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions src/views/login/ServiceSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,29 @@ const ServiceSelector: Screen<"ServiceSelector"> = ({ navigation }) => {
playSound();
break;
case "ed":
showAlert({
title: "Service en développement",
message: "Ce service est actuellement en développement. Certaines fonctionnalités peuvent ne pas fonctionner correctement ou ne pas être disponibles.",
actions: [
{
title: "Retour",
onPress: () => {},
icon: <Undo2 />,
primary: false,
},
]
});
if(__DEV__) {
showAlert({
title: "[DEBUG] Service en développement",
message: "Ce service est actuellement en développement. Certaines fonctionnalités peuvent ne pas fonctionner correctement ou ne pas être disponibles.",
actions: [
{
title: "Annuler",
onPress: () => {},
icon: <Undo2 />,
primary: false,
},
{
title: "Continuer",
onPress: () => {
navigation.navigate("SkolengoAuthenticationSelector");
playSound();
},
icon: <Check />,
primary: true,
}
]
});
} else UnsupportedAlert();
break;
case "skolengo":
// TODO : Remove this alert when Skolengo is fully supported
Expand Down

0 comments on commit ee8dc71

Please sign in to comment.