From 1395496fce511e1310651ad7b87d4e575ec70dd3 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Sat, 21 Jun 2025 00:21:57 +0530 Subject: [PATCH] Merged all changes from frontend branch w/ main branch up to commit 0d757995bbe545107e973ad893b8197ac161b6b7 --- Frontend/src/pages/UserPanel/Ai.jsx | 54 ++++++++++--------- Frontend/src/pages/UserPanel/Farm/AddFarm.jsx | 1 - 2 files changed, 28 insertions(+), 27 deletions(-) diff --git a/Frontend/src/pages/UserPanel/Ai.jsx b/Frontend/src/pages/UserPanel/Ai.jsx index db9f1d2..e2030d5 100644 --- a/Frontend/src/pages/UserPanel/Ai.jsx +++ b/Frontend/src/pages/UserPanel/Ai.jsx @@ -45,32 +45,34 @@ const Ai = () => { }; return ( -
-

- Plant disease prediction -

-
- - -
- {error &&

{error}

} - {prediction && ( -
-

Prediction:

-

{prediction}

-
- )} +
+
+

+ Plant disease prediction +

+
+ + +
+ {error &&

{error}

} + {prediction && ( +
+

Prediction:

+

{prediction}

+
+ )} +
); }; diff --git a/Frontend/src/pages/UserPanel/Farm/AddFarm.jsx b/Frontend/src/pages/UserPanel/Farm/AddFarm.jsx index dced04b..733dd7e 100644 --- a/Frontend/src/pages/UserPanel/Farm/AddFarm.jsx +++ b/Frontend/src/pages/UserPanel/Farm/AddFarm.jsx @@ -37,7 +37,6 @@ const AddFarm = () => { setSuccess(true); setError(null); setIsModalOpen(false); - window.location.reload(); } catch (err) { setError(err.message); setSuccess(false);