Skip to content

Commit

Permalink
chore: add disclaimer
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowsheep1 committed Sep 26, 2024
1 parent 5baad5d commit be6e833
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
8 changes: 8 additions & 0 deletions example/src/common/style/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ export const styles = StyleSheet.create({
fontWeight: 'bold',
fontSize: 14,
},
disclaimer: {
textAlign: 'center',
marginVertical: 8,
fontSize: 20,
color: 'red',
backgroundColor: 'yellow',
fontWeight: 'bold',
},
separator: {
marginVertical: 8,
borderBottomColor: '#737373',
Expand Down
2 changes: 1 addition & 1 deletion example/src/screen/HomeScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const HomeScreen: React.FC<HomeScreenProps> = ({ navigation }) => {
</View>
<View style={styles.separator} />
<View>
<Text style={styles.title}>Test CieId production login</Text>
<Text style={styles.title}>Test CieId login</Text>
<Button
title="Test CieId Login"
// nice fluo color
Expand Down
11 changes: 10 additions & 1 deletion example/src/screen/WebViewLoginConfigScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ export const WebViewLoginConfig: React.FC<HomeScreenProps> = () => {

return (
<SafeAreaView style={styles.container}>
<View>
<Text style={styles.disclaimer}>
🚨 Be aware that if you do a success login, your current App IO
session will be invalidated. 🚨
</Text>
</View>
<View style={styles.separator} />
<View style={styles.switchContainer}>
<Text style={styles.title}>SPID Level 3 (default is 2)</Text>
<Switch
Expand All @@ -45,7 +52,9 @@ export const WebViewLoginConfig: React.FC<HomeScreenProps> = () => {
</View>
<View style={styles.separator} />
<View>
<Text style={styles.title}>Test CieId production login</Text>
<Text
style={styles.title}
>{`Test CieId ${isUatEnabled ? 'UAT' : 'production'} login with ${isSpidLevel3Enabled ? 'L3' : 'L2'}`}</Text>
<Button
title="Test CieId Login"
// nice fluo color
Expand Down

0 comments on commit be6e833

Please sign in to comment.