Merged all changes from frontend branch w/ main branch up to commit 0d757995bb

This commit is contained in:
K
2025-06-21 00:21:57 +05:30
parent 91aaa092f3
commit 1395496fce
2 changed files with 28 additions and 27 deletions
+2
View File
@@ -45,6 +45,7 @@ const Ai = () => {
}; };
return ( return (
<div className="min-h-screen w-full flex items-center justify-center max-h-screen">
<div className="max-w-md mx-auto p-6 bg-white shadow rounded-lg"> <div className="max-w-md mx-auto p-6 bg-white shadow rounded-lg">
<h2 className="text-2xl font-bold mb-4 text-center"> <h2 className="text-2xl font-bold mb-4 text-center">
Plant disease prediction Plant disease prediction
@@ -72,6 +73,7 @@ const Ai = () => {
</div> </div>
)} )}
</div> </div>
</div>
); );
}; };
@@ -37,7 +37,6 @@ const AddFarm = () => {
setSuccess(true); setSuccess(true);
setError(null); setError(null);
setIsModalOpen(false); setIsModalOpen(false);
window.location.reload();
} catch (err) { } catch (err) {
setError(err.message); setError(err.message);
setSuccess(false); setSuccess(false);