disable picker via context
This commit is contained in:
parent
8064b357d7
commit
0585f61522
5 changed files with 5 additions and 5 deletions
|
@ -81,7 +81,7 @@ export const CategoryDetails: React.FC<CategoryDetailsProps> = ({
|
|||
variables: { ...paginationState, id }
|
||||
});
|
||||
|
||||
const { availableChannels, channel } = useAppChannel();
|
||||
const { availableChannels, channel } = useAppChannel(false);
|
||||
|
||||
const channelChoices = mapNodeToChoice(availableChannels);
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ export const CollectionList: React.FC<CollectionListProps> = ({ params }) => {
|
|||
}
|
||||
});
|
||||
|
||||
const { availableChannels, channel } = useAppChannel();
|
||||
const { availableChannels, channel } = useAppChannel(false);
|
||||
|
||||
const tabs = getFilterTabs();
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@ export const VoucherDetails: React.FC<VoucherDetailsProps> = ({
|
|||
VoucherUrlQueryParams
|
||||
>(navigate, params => voucherUrl(id, params), params);
|
||||
|
||||
const { channel, availableChannels } = useAppChannel();
|
||||
const { channel, availableChannels } = useAppChannel(false);
|
||||
|
||||
const allChannels: ChannelVoucherData[] = createChannelsDataWithDiscountPrice(
|
||||
data?.voucher,
|
||||
|
|
|
@ -164,7 +164,7 @@ export const ProductUpdate: React.FC<ProductUpdateProps> = ({ id, params }) => {
|
|||
productVariantCreateOpts
|
||||
] = useVariantCreateMutation({});
|
||||
|
||||
const { availableChannels, channel } = useAppChannel();
|
||||
const { availableChannels, channel } = useAppChannel(false);
|
||||
const { data, loading, refetch } = useProductDetails({
|
||||
displayLoader: true,
|
||||
variables: {
|
||||
|
|
|
@ -73,7 +73,7 @@ const ShippingZoneDetails: React.FC<ShippingZoneDetailsProps> = ({
|
|||
displayLoader: true,
|
||||
variables: { id, ...paginationState }
|
||||
});
|
||||
const { availableChannels, channel } = useAppChannel();
|
||||
const { availableChannels, channel } = useAppChannel(false);
|
||||
|
||||
const [openModal, closeModal] = createDialogActionHandlers<
|
||||
ShippingZoneUrlDialog,
|
||||
|
|
Loading…
Reference in a new issue