Fix product create view

This commit is contained in:
dominik-zeglen 2020-03-24 20:37:14 +01:00
parent f94fdba7b9
commit c161de1270

View file

@ -84,6 +84,7 @@ interface ProductCreatePageProps {
fetchCategories: (data: string) => void; fetchCategories: (data: string) => void;
fetchCollections: (data: string) => void; fetchCollections: (data: string) => void;
fetchProductTypes: (data: string) => void; fetchProductTypes: (data: string) => void;
onWarehouseEdit: () => void;
onBack?(); onBack?();
onSubmit?(data: ProductCreatePageSubmitData); onSubmit?(data: ProductCreatePageSubmitData);
} }
@ -104,7 +105,8 @@ export const ProductCreatePage: React.FC<ProductCreatePageProps> = ({
saveButtonBarState, saveButtonBarState,
onBack, onBack,
fetchProductTypes, fetchProductTypes,
onSubmit onSubmit,
onWarehouseEdit
}: ProductCreatePageProps) => { }: ProductCreatePageProps) => {
const intl = useIntl(); const intl = useIntl();
const localizeDate = useDateLocalize(); const localizeDate = useDateLocalize();