diff --git a/src/discounts/components/SaleCreatePage/SaleCreatePage.tsx b/src/discounts/components/SaleCreatePage/SaleCreatePage.tsx index 679926c48..8413672bb 100644 --- a/src/discounts/components/SaleCreatePage/SaleCreatePage.tsx +++ b/src/discounts/components/SaleCreatePage/SaleCreatePage.tsx @@ -1,12 +1,12 @@ import { validateSalePrice } from "@dashboard/channels/utils"; import { TopNav } from "@dashboard/components/AppLayout/TopNav"; -import CardSpacer from "@dashboard/components/CardSpacer"; import ChannelsAvailabilityCard from "@dashboard/components/ChannelsAvailabilityCard"; import Form from "@dashboard/components/Form"; import { DetailPageLayout } from "@dashboard/components/Layouts"; import Metadata, { MetadataFormData } from "@dashboard/components/Metadata"; import Savebar from "@dashboard/components/Savebar"; import { createSaleChannelsChangeHandler } from "@dashboard/discounts/handlers"; +import { saleListUrl } from "@dashboard/discounts/urls"; import { SALE_CREATE_FORM_ID } from "@dashboard/discounts/views/SaleCreate/consts"; import { DiscountErrorFragment, @@ -102,6 +102,7 @@ const SaleCreatePage: React.FC = ({ return ( = ({ errors={errors} onChange={change} /> - - - = ({ errors={errors} onChange={change} /> - - = ({ - = ({ onChange={event => handleDiscountTypeChange(data, event)} variant="create" /> - = ({ /> {data.discountType.toString() !== "SHIPPING" ? ( <> - = ({ /> ) : null} - = ({ onChannelChange={handleChannelChange} onChange={change} /> - = ({ setData={set} isNewVoucher /> - = ({ onChange={change} variant="update" /> - handleDiscountTypeChange(data, event)} /> - {data.discountType.toString() !== "SHIPPING" ? ( = ({ variant="update" /> ) : null} - {data.type === VoucherTypeEnum.SPECIFIC_PRODUCT && data.discountType.toString() !== "SHIPPING" ? ( <> @@ -306,7 +303,6 @@ const VoucherDetailsPage: React.FC = ({ )} ) : null} - {data.discountType.toString() === "SHIPPING" ? ( = ({ onCountryUnassign={onCountryUnassign} /> ) : null} - = ({ onChange={change} onChannelChange={handleChannelChange} /> - = ({ setData={set} isNewVoucher={false} /> - = ({ voucher={voucher} selectedChannelId={selectedChannelId} /> -