npm-pkg-hook 1.6.5 → 1.6.7
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
|
@@ -14,6 +14,7 @@ export const useManageNewOrder = ({
|
|
|
14
14
|
return { message, duration }
|
|
15
15
|
},
|
|
16
16
|
playNotificationSound = () => {},
|
|
17
|
+
setIsOpenOrder = (boolean) => { return boolean },
|
|
17
18
|
setCountOrders = (number) => { return number },
|
|
18
19
|
sendNotification = ({ title, description, backgroundColor }) => {
|
|
19
20
|
return {
|
|
@@ -46,7 +47,6 @@ export const useManageNewOrder = ({
|
|
|
46
47
|
}
|
|
47
48
|
}, [data])
|
|
48
49
|
|
|
49
|
-
const [isOpenOrder, setIsOpenOrder] = useState(false)
|
|
50
50
|
const { getOnePedidoStore } = useGetSale()
|
|
51
51
|
|
|
52
52
|
const handleNewOrder = (order) => {
|
|
@@ -90,7 +90,6 @@ export const useManageNewOrder = ({
|
|
|
90
90
|
}
|
|
91
91
|
})
|
|
92
92
|
})
|
|
93
|
-
setAlertBox({ message: 'Nuevo pedido', duration: 100000 })
|
|
94
93
|
sendNotification({
|
|
95
94
|
title: 'Pedido',
|
|
96
95
|
description: 'Nuevo pedido',
|
|
@@ -99,5 +98,5 @@ export const useManageNewOrder = ({
|
|
|
99
98
|
}
|
|
100
99
|
}
|
|
101
100
|
|
|
102
|
-
return [orders, { handleNewOrder
|
|
101
|
+
return [orders, { handleNewOrder }]
|
|
103
102
|
}
|