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);