This commit is contained in:
zadit frontend
2024-08-01 12:20:33 +00:00
parent a158e44071
commit c4654ce64f
14 changed files with 936 additions and 20 deletions

View File

@@ -72,6 +72,15 @@ export const useNavigationHelpers = (shopId, tableId) => {
navigate(url);
};
const goToTransactions = () => {
let url = `/${shopId}`;
if (tableId) {
url += `/${tableId}`;
}
url += "/transactions";
navigate(url);
};
const goToGuestSideLogin = () => {
let url = `/${shopId}`;
if (tableId) {
@@ -91,6 +100,7 @@ export const useNavigationHelpers = (shopId, tableId) => {
goToSearch,
goToCart,
goToInvoice,
goToTransactions,
goToGuestSideLogin,
goToAdminCafes,
};