import $ from "jquery";

export const hide_spinner = (order_id: string | null): void => {
    if (!order_id) return;
	const parentElement = $(`.order-${order_id}.type-shop_order, .post-${order_id}.type-shop_order`);
	const spinner = parentElement.find('.wetail_shipping_engine .spinner');

    spinner.hide().css('visibility', 'hidden');
}
