diff --git a/ISSUE_TEMPLATE.md b/ISSUE_TEMPLATE.md index 275a361..731dbab 100644 --- a/ISSUE_TEMPLATE.md +++ b/ISSUE_TEMPLATE.md @@ -5,9 +5,3 @@ **If your issue was not created using the app above, it will be closed immediately.** --> - - diff --git a/src/config.js b/src/config.js index 4b7a149..50706e1 100644 --- a/src/config.js +++ b/src/config.js @@ -1,5 +1,5 @@ // config.js -//const baseURL = "http://localhost:5000"; +const baseURL = "http://localhost:5000"; -const baseURL = "https://advizor-server-d27fd1ef5a20.herokuapp.com"; +// const baseURL = "https://advizor-server-d27fd1ef5a20.herokuapp.com"; export default baseURL; diff --git a/src/layouts/upload/inputImage.js b/src/layouts/upload/inputImage.js index c50c867..185a21b 100644 --- a/src/layouts/upload/inputImage.js +++ b/src/layouts/upload/inputImage.js @@ -160,7 +160,15 @@ const ImageUploader = () => { Submit {loading && ( -
+
Analyzing... diff --git a/src/layouts/upload/inputPDF.js b/src/layouts/upload/inputPDF.js index 51c9c36..88fad1d 100644 --- a/src/layouts/upload/inputPDF.js +++ b/src/layouts/upload/inputPDF.js @@ -124,11 +124,18 @@ const PDFUploader = () => { Submit {loading && ( -
+
Analyzing... - {/* */}
)} @@ -149,12 +156,10 @@ const PDFUploader = () => { { - // Define the query parameter object with the locations const queryParams = { locations: responseItem[0].join(", "), }; - // Navigate to the '/advertisement_map' route with query parameters navigate(`/advertisement_map?locations=${queryParams.locations}`); }} > diff --git a/src/layouts/upload/inputURL.js b/src/layouts/upload/inputURL.js index ac2623d..c7246ff 100644 --- a/src/layouts/upload/inputURL.js +++ b/src/layouts/upload/inputURL.js @@ -178,7 +178,6 @@ function InputURL() { Analyzing... - {/* */}
)} @@ -186,52 +185,6 @@ function InputURL() { {backendResponse.length > 0 && ( - {/* - Title: {backendResponse[0]} - - - Text: {backendResponse[1]} - - - Summary: {backendResponse[2]} - - - Keywords: {backendResponse[3].join(", ")} - - - Category: {backendResponse[4]} - - - Price: {backendResponse[5]} - - - Contact: {backendResponse[6]} - - {backendResponse[7].length > 0 && ( - -
- - Locations: {backendResponse[7].join(", ")} - - { - // Define the query parameter object with the locations - const queryParams = { - locations: backendResponse[7].join(", "), - }; - - // Navigate to the '/advertisement_map' route with query parameters - navigate(`/advertisement_map?locations=${queryParams.locations}`); - }} - > - View Locations - -
-
- )} */}
)}