apply order cancaltion

This commit is contained in:
2025-11-24 00:05:25 +03:00
parent b9c5ab69e6
commit 6e8305f9c2
4 changed files with 63 additions and 12 deletions

View File

@@ -18,14 +18,14 @@ export function CancelOrderBottomSheet() {
const { t } = useTranslation();
const [isOpen, setIsOpen] = useState(false);
const { isRTL } = useAppSelector((state) => state.locale);
const { orderID } = useParams();
const { orderId } = useParams();
const [cancelOrder] = useCancelOrderMutation();
const handleCancelOrder = () => {
setIsOpen(false);
cancelOrder({
orderID: orderID,
orderID: orderId || "",
}).then((res: any) => {
if (res.error) {
message.error(res.error.data.message);
@@ -89,6 +89,7 @@ export function CancelOrderBottomSheet() {
alignItems: "center",
justifyContent: "center",
gap: 10,
marginTop: 15,
}}
>
<CancelPopupIcon />