Fix:Added Create finanace and View Finance

This commit is contained in:
2025-02-23 07:00:07 +05:30
parent 04317cb9e9
commit ac723810c5
6 changed files with 132 additions and 3 deletions
@@ -44,6 +44,7 @@ const AddFarm = () => {
setSuccess(true);
setError(null);
setIsModalOpen(false);
window.location.reload();
} catch (err) {
setError(err.message);
setSuccess(false);
@@ -53,7 +54,9 @@ const AddFarm = () => {
return (
<>
<button
onClick={() => setIsModalOpen(true)}
onClick={() => {
setIsModalOpen(true);
}}
className="block text-white bg-green-600 hover:bg-green-700 focus:ring-4 focus:outline-none focus:ring-green-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center"
type="button"
>