ordering-ui-react-native 0.21.83-test → 0.21.84-test
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useState } from 'react'
|
|
2
|
-
import { View, TouchableOpacity, Platform } from 'react-native'
|
|
2
|
+
import { View, TouchableOpacity, Platform, StyleSheet } from 'react-native'
|
|
3
3
|
import { useLanguage, useSession, useUtils, Sessions as SessionsController } from 'ordering-components/native'
|
|
4
|
-
import NavBar from '../NavBar'
|
|
5
4
|
import { SessionsParams } from '../../types'
|
|
6
5
|
import { OAlert } from '../../../../../src/components/shared'
|
|
7
6
|
import { OButton, OIcon, OText } from '../shared'
|
|
@@ -61,18 +60,43 @@ export const SessionsUI = (props: SessionsParams) => {
|
|
|
61
60
|
})
|
|
62
61
|
}
|
|
63
62
|
|
|
63
|
+
const styles = StyleSheet.create({
|
|
64
|
+
titleGroups: {
|
|
65
|
+
alignItems: 'center',
|
|
66
|
+
flexDirection: 'row',
|
|
67
|
+
minHeight: 33,
|
|
68
|
+
},
|
|
69
|
+
btnBackArrow: {
|
|
70
|
+
borderWidth: 0,
|
|
71
|
+
width: 32,
|
|
72
|
+
height: 32,
|
|
73
|
+
tintColor: theme.colors.textGray,
|
|
74
|
+
backgroundColor: theme.colors.clear,
|
|
75
|
+
borderColor: theme.colors.clear,
|
|
76
|
+
shadowColor: theme.colors.clear,
|
|
77
|
+
paddingLeft: 0,
|
|
78
|
+
paddingRight: 0,
|
|
79
|
+
marginTop: 10
|
|
80
|
+
},
|
|
81
|
+
innerPadding: {
|
|
82
|
+
paddingLeft: 10,
|
|
83
|
+
paddingRight: 10
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
|
|
64
87
|
return (
|
|
65
88
|
<Container
|
|
66
|
-
pdng={Platform.OS === 'ios' ? '10px' : '
|
|
89
|
+
pdng={Platform.OS === 'ios' ? '10px' : '8px'}
|
|
90
|
+
style={Platform.OS !== 'ios' && styles.innerPadding}
|
|
67
91
|
>
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
92
|
+
<View style={styles.titleGroups}>
|
|
93
|
+
<TouchableOpacity onPress={() => goToBack()} style={styles.btnBackArrow}>
|
|
94
|
+
<OIcon src={theme.images.general.arrow_left} color={theme.colors.textGray} />
|
|
95
|
+
</TouchableOpacity>
|
|
96
|
+
</View>
|
|
97
|
+
<OText size={24} style={{ paddingTop: 12 }}>
|
|
98
|
+
{t('SESSIONS', 'Sessions')}
|
|
99
|
+
</OText>
|
|
76
100
|
{user?.session_strategy === 'jwt_session' ? (
|
|
77
101
|
<>
|
|
78
102
|
{sessionsList.loading ? (
|
|
@@ -47,7 +47,8 @@ const ProfileUI = (props: ProfileParams) => {
|
|
|
47
47
|
cleanFormState,
|
|
48
48
|
handleToggleAvalaibleStatusDriver,
|
|
49
49
|
isAlsea,
|
|
50
|
-
isHideDriverStatus
|
|
50
|
+
isHideDriverStatus,
|
|
51
|
+
navigation
|
|
51
52
|
} = props;
|
|
52
53
|
|
|
53
54
|
const [{ user, sessionLoading }] = useSession();
|
|
@@ -505,6 +506,17 @@ const ProfileUI = (props: ProfileParams) => {
|
|
|
505
506
|
marginTop: 10
|
|
506
507
|
}} />
|
|
507
508
|
</Pressable>
|
|
509
|
+
<Pressable style={{ marginBottom: 10 }} onPress={() => navigation.navigate('Sessions')}>
|
|
510
|
+
<View style={{ flexDirection: 'row', justifyContent: 'space-between' }}>
|
|
511
|
+
<OText size={16}>{t('SESSIONS', 'Sessions')}</OText>
|
|
512
|
+
<AntDesignIcon size={18} name='right' />
|
|
513
|
+
</View>
|
|
514
|
+
<View style={{
|
|
515
|
+
borderBottomColor: theme.colors.tabBar,
|
|
516
|
+
borderBottomWidth: 1,
|
|
517
|
+
marginTop: 10
|
|
518
|
+
}} />
|
|
519
|
+
</Pressable>
|
|
508
520
|
<Actions>
|
|
509
521
|
<LanguageSelector />
|
|
510
522
|
|