enh
This commit is contained in:
parent
bce754d0a1
commit
002b73cf87
8 changed files with 8 additions and 8 deletions
6
apps/admin-ui/.expo/types/router.d.ts
vendored
6
apps/admin-ui/.expo/types/router.d.ts
vendored
File diff suppressed because one or more lines are too long
|
|
@ -229,7 +229,6 @@ export default function Layout() {
|
||||||
<Drawer.Screen name="stores" options={{ title: "Stores" }} />
|
<Drawer.Screen name="stores" options={{ title: "Stores" }} />
|
||||||
<Drawer.Screen name="address-management" options={{ title: "Address Management" }} />
|
<Drawer.Screen name="address-management" options={{ title: "Address Management" }} />
|
||||||
<Drawer.Screen name="product-tags" options={{ title: "Product Tags" }} />
|
<Drawer.Screen name="product-tags" options={{ title: "Product Tags" }} />
|
||||||
<Drawer.Screen name="order-details/[id]" options={{ title: "Order Details" }} />
|
|
||||||
<Drawer.Screen name="rebalance-orders" options={{ title: "Rebalance Orders" }} />
|
<Drawer.Screen name="rebalance-orders" options={{ title: "Rebalance Orders" }} />
|
||||||
<Drawer.Screen name="user-management" options={{ title: "User Management" }} />
|
<Drawer.Screen name="user-management" options={{ title: "User Management" }} />
|
||||||
<Drawer.Screen name="send-notifications" options={{ title: "Send Notifications" }} />
|
<Drawer.Screen name="send-notifications" options={{ title: "Send Notifications" }} />
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ export default function Layout() {
|
||||||
<Stack.Screen name="index" options={{ title: 'Manage Orders' }} />
|
<Stack.Screen name="index" options={{ title: 'Manage Orders' }} />
|
||||||
<Stack.Screen name="delivery-sequences" options={{ title: 'Delivery Sequences' }} />
|
<Stack.Screen name="delivery-sequences" options={{ title: 'Delivery Sequences' }} />
|
||||||
<Stack.Screen name="orders" options={{ title: 'Orders' }} />
|
<Stack.Screen name="orders" options={{ title: 'Orders' }} />
|
||||||
|
<Stack.Screen name="order-details" options={{ title: 'Order Details' }} />
|
||||||
</Stack>
|
</Stack>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -726,7 +726,7 @@ export default function DeliverySequences() {
|
||||||
}}
|
}}
|
||||||
onViewDetails={() => {
|
onViewDetails={() => {
|
||||||
if (selectedOrder) {
|
if (selectedOrder) {
|
||||||
router.push(`/order-details/${selectedOrder.id}`);
|
router.push(`/manage-orders/order-details/${selectedOrder.id}`);
|
||||||
}
|
}
|
||||||
setShowOrderMenu(false);
|
setShowOrderMenu(false);
|
||||||
}}
|
}}
|
||||||
|
|
|
||||||
|
|
@ -100,12 +100,12 @@ const OrderItem = ({ order, refetch }: { order: OrderType; refetch: () => void }
|
||||||
const updateItemPackagingMutation = trpc.admin.order.updateOrderItemPackaging.useMutation();
|
const updateItemPackagingMutation = trpc.admin.order.updateOrderItemPackaging.useMutation();
|
||||||
|
|
||||||
const handleOrderPress = () => {
|
const handleOrderPress = () => {
|
||||||
router.push(`/order-details/${order.orderId}` as any);
|
router.push(`/manage-orders/order-details/${order.orderId}` as any);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleMenuOption = () => {
|
const handleMenuOption = () => {
|
||||||
setMenuOpen(false);
|
setMenuOpen(false);
|
||||||
router.push(`/order-details/${order.orderId}` as any);
|
router.push(`/manage-orders/order-details/${order.orderId}` as any);
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleMarkPackaged = (isPackaged: boolean) => {
|
const handleMarkPackaged = (isPackaged: boolean) => {
|
||||||
|
|
|
||||||
|
|
@ -111,7 +111,7 @@ export default function UserDetails() {
|
||||||
});
|
});
|
||||||
|
|
||||||
const handleOrderPress = useCallback((orderId: number) => {
|
const handleOrderPress = useCallback((orderId: number) => {
|
||||||
router.push(`/(drawer)/order-details/${orderId}`);
|
router.push(`/(drawer)/manage-orders/order-details/${orderId}`);
|
||||||
}, [router]);
|
}, [router]);
|
||||||
|
|
||||||
const handleSuspensionToggle = useCallback((isSuspended: boolean) => {
|
const handleSuspensionToggle = useCallback((isSuspended: boolean) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue