ordering-ui-react-native 0.22.94 → 0.22.96
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 +1 -1
- package/themes/business/src/components/LogoutButton/index.tsx +2 -1
- package/themes/business/src/components/OrdersOption/index.tsx +1 -2
- package/themes/business/src/components/PreviousOrders/OrderItem.tsx +5 -1
- package/themes/business/src/components/UserProfileForm/index.tsx +1 -1
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { OIcon, OText } from '../shared';
|
|
|
7
7
|
import { _retrieveStoreData, _clearStoreData } from '../../providers/StoreUtil';
|
|
8
8
|
|
|
9
9
|
const LogoutButtonUI = (props: any) => {
|
|
10
|
-
const { handleLogoutClick } = props;
|
|
10
|
+
const { handleLogoutClick, setRootState } = props;
|
|
11
11
|
const [, t] = useLanguage();
|
|
12
12
|
const theme = useTheme();
|
|
13
13
|
|
|
@@ -16,6 +16,7 @@ const LogoutButtonUI = (props: any) => {
|
|
|
16
16
|
const res = await handleLogoutClick(data);
|
|
17
17
|
if (res) {
|
|
18
18
|
_clearStoreData({ excludedKeys: ['isTutorial', 'language'] });
|
|
19
|
+
setRootState && setRootState({ isAuth: false, token: null })
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
|
|
@@ -1060,7 +1060,7 @@ export const OrdersOption = (props: OrdersOptionParams) => {
|
|
|
1060
1060
|
: storagedValue
|
|
1061
1061
|
|
|
1062
1062
|
const canSaveChangesOffline = typeof configState?.configs?.allow_save_changes_offline === 'object'
|
|
1063
|
-
? (configState?.configs?.allow_save_changes_offline?.value ?? '')?.toString() === '
|
|
1063
|
+
? (configState?.configs?.allow_save_changes_offline?.value ?? '')?.toString() === '1'
|
|
1064
1064
|
: saveChangesOffline
|
|
1065
1065
|
|
|
1066
1066
|
offlineMethods.setState((state: any) => ({
|
|
@@ -1080,7 +1080,6 @@ export const OrdersOption = (props: OrdersOptionParams) => {
|
|
|
1080
1080
|
const ordersProps = {
|
|
1081
1081
|
...props,
|
|
1082
1082
|
UIComponent: OrdersOptionUI,
|
|
1083
|
-
useDefualtSessionManager: true,
|
|
1084
1083
|
asDashboard: true,
|
|
1085
1084
|
combineTabs,
|
|
1086
1085
|
isIos: Platform.OS === 'ios',
|
|
@@ -154,7 +154,11 @@ export const OrderItem = React.memo((props: any) => {
|
|
|
154
154
|
<Pressable
|
|
155
155
|
disabled={order?.locked && isLogisticOrder}
|
|
156
156
|
style={styles.cardButton}
|
|
157
|
-
onPress={() => handlePressOrder({
|
|
157
|
+
onPress={() => handlePressOrder({
|
|
158
|
+
...order,
|
|
159
|
+
logistic_order_id: _order?.id,
|
|
160
|
+
unsync: order?.unsync && !ordersOffUpdated?.includes(order?.id)
|
|
161
|
+
})}
|
|
158
162
|
>
|
|
159
163
|
<Card key={order.id}>
|
|
160
164
|
{!!allowColumns?.slaBar && (
|