apply order cancaltion
This commit is contained in:
@@ -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 />
|
||||
|
||||
Reference in New Issue
Block a user