-
Creating - {productTitle}
+ const {data:provision, isFetching, isError, error} = useQuery({
+ queryKey: queryKeys.myproduct_provision,
+ queryFn: () => productProvision(productID)
+ })
+
+ const provisionData = provision?.data?.provision
+
+ return (
+ <>
+ {isFetching ?
+ <>
+
+ >
+ : isError ?
+
+ :
+ <>
+
+
+
+
+
+
Creating - {productTitle}
+
+
+
-
-
+
+
+
+
+
+
+
+
Progress Information
+
+
+
+
+
+
+
+ | # |
+ Action |
+
+
+
+
+ {provisionData?.url?.map(item => (
+
+ | {item.id} |
+ {item.action} |
+
+
+ ))}
+
+
+
+
-
-
-
-
-
-
+
+
+
+
Started creating your selection
+
})
+
+
+ {productDescription}
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
- | # |
- Action |
-
-
-
-
-
- | 1 |
- Start Creation |
-
-
-
- | 2 |
- Update Access Routes |
-
-
-
- | 3 |
- Veryfing ... |
-
-
-
-
-
-
-
-
-
-
-
-
Started creating your selection
-
})
-
-
- {productDescription}
-
-
-
-
-
-
-
-
- >
+ >
+ }
+ >
+ )
}
\ No newline at end of file
diff --git a/src/services/queryKeys.js b/src/services/queryKeys.js
index 3a25f02..374cebe 100644
--- a/src/services/queryKeys.js
+++ b/src/services/queryKeys.js
@@ -3,7 +3,8 @@ const queryKeys = {
topBar: ['top-bar'],
recentAction: ['recent-action'],
product: ['product-data'],
- product_url: ['product_url']
+ product_url: ['product_url'],
+ myproduct_provision: ['myproduct_provision']
}
export default queryKeys
\ No newline at end of file
diff --git a/src/services/services.js b/src/services/services.js
index f02e56b..c843224 100644
--- a/src/services/services.js
+++ b/src/services/services.js
@@ -106,6 +106,12 @@ export const recentActions = () => {
return getAuxEnd(`/panel/account/actions`)
}
+// FUNCTION TO GET MY PRODUCT PROVISION DATA
+export const productProvision = (productID) => {
+ const reqData = { product_id : productID}
+ return getAuxEnd(`/panel/myproduct/provision`,reqData)
+}
+
// FUNCTION TO GET DASHBOARD PRODUCT DATA SECTION
export const productData = () => {
return getAuxEnd(`/panel/account/products`)