@open-tender/store 1.1.19 → 1.1.20
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.
|
@@ -16,7 +16,7 @@ var OrderCard = function (_a) {
|
|
|
16
16
|
var isLoading = loading === 'pending';
|
|
17
17
|
var _f = (0, hooks_2.useOrder)(order), itemImages = _f.itemImages, itemNames = _f.itemNames, orderNo = _f.orderNo, title = _f.title, subtitle = _f.subtitle;
|
|
18
18
|
var view = function () {
|
|
19
|
-
|
|
19
|
+
dispatch((0, slices_1.openModal)({ type: 'ORDER_DETAILS', args: { order: order } }));
|
|
20
20
|
};
|
|
21
21
|
var reorder = function () {
|
|
22
22
|
setErrMsg(null);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
2
2
|
import { useAppDispatch, useAppSelector } from '../app/hooks';
|
|
3
3
|
import { useOrder } from '../hooks';
|
|
4
|
-
import { selectKioskConfig, selectOrder, reorder as reorderPastOrder } from '../slices';
|
|
4
|
+
import { selectKioskConfig, selectOrder, reorder as reorderPastOrder, openModal } from '../slices';
|
|
5
5
|
import { default as ErrorMessageContainer } from './ErrorMessage';
|
|
6
6
|
var OrderCard = function (_a) {
|
|
7
7
|
var order = _a.order, navigate = _a.navigate, children = _a.children, apiUrl = _a.apiUrl, ErrorMessageView = _a.ErrorMessageView;
|
|
@@ -13,7 +13,7 @@ var OrderCard = function (_a) {
|
|
|
13
13
|
var isLoading = loading === 'pending';
|
|
14
14
|
var _f = useOrder(order), itemImages = _f.itemImages, itemNames = _f.itemNames, orderNo = _f.orderNo, title = _f.title, subtitle = _f.subtitle;
|
|
15
15
|
var view = function () {
|
|
16
|
-
|
|
16
|
+
dispatch(openModal({ type: 'ORDER_DETAILS', args: { order: order } }));
|
|
17
17
|
};
|
|
18
18
|
var reorder = function () {
|
|
19
19
|
setErrMsg(null);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.20",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|