|
@@ -12,9 +12,12 @@ enum ProductStatus {
|
|
const ProductsList = ({ onNext, isComplete }: StepContentProps) => {
|
|
const ProductsList = ({ onNext, isComplete }: StepContentProps) => {
|
|
const { mutateAsync: createCollection, isLoading: collectionLoading } =
|
|
const { mutateAsync: createCollection, isLoading: collectionLoading } =
|
|
useAdminCreateCollection();
|
|
useAdminCreateCollection();
|
|
- const { mutateAsync: createProduct, isLoading } = useAdminCreateProduct();
|
|
|
|
|
|
+ const { mutateAsync: createProduct, isLoading: productLoading } =
|
|
|
|
+ useAdminCreateProduct();
|
|
const { regions } = useAdminRegions();
|
|
const { regions } = useAdminRegions();
|
|
|
|
|
|
|
|
+ const isLoading = collectionLoading || productLoading;
|
|
|
|
+
|
|
const createSample = async () => {
|
|
const createSample = async () => {
|
|
try {
|
|
try {
|
|
const { collection } = await createCollection({
|
|
const { collection } = await createCollection({
|