Browse Source

Improve equipment confirm screen dates display

Arnaud Vergnet 3 years ago
parent
commit
faac5688f8
1 changed files with 4 additions and 6 deletions
  1. 4
    6
      src/screens/Amicale/Equipment/EquipmentConfirmScreen.tsx

+ 4
- 6
src/screens/Amicale/Equipment/EquipmentConfirmScreen.tsx View File

@@ -19,11 +19,11 @@
19 19
 
20 20
 import * as React from 'react';
21 21
 import {
22
-  Button,
23 22
   Caption,
24 23
   Card,
25 24
   Headline,
26 25
   Paragraph,
26
+  Title,
27 27
   useTheme,
28 28
 } from 'react-native-paper';
29 29
 import {View} from 'react-native';
@@ -61,6 +61,7 @@ function EquipmentConfirmScreen(props: Props) {
61 61
         date: getRelativeDateString(start),
62 62
       });
63 63
     }
64
+    console.log(buttonText);
64 65
     return (
65 66
       <CollapsibleScrollView>
66 67
         <Card style={{margin: 5}}>
@@ -84,12 +85,9 @@ function EquipmentConfirmScreen(props: Props) {
84 85
                 </Caption>
85 86
               </View>
86 87
             </View>
87
-            <Button
88
-              icon="check-circle-outline"
89
-              color={theme.colors.success}
90
-              mode="text">
88
+            <Title style={{color: theme.colors.success, textAlign: 'center'}}>
91 89
               {buttonText}
92
-            </Button>
90
+            </Title>
93 91
             <Paragraph style={{textAlign: 'center'}}>
94 92
               {i18n.t('screens.equipment.bookingConfirmedMessage')}
95 93
             </Paragraph>

Loading…
Cancel
Save