diff --git a/client/src/components/Farmer/FDashboard.jsx b/client/src/components/Farmer/FDashboard.jsx
index 5ac2589..753406b 100644
--- a/client/src/components/Farmer/FDashboard.jsx
+++ b/client/src/components/Farmer/FDashboard.jsx
@@ -3,7 +3,8 @@ import { useState, useEffect } from 'react';
import { collection, getDocs } from 'firebase/firestore';
import { db } from '../../../firebase'; // Import your firebase configuration
import Navbar from './FarmNav';
-
+import { useAuth } from '../context/auth_context';
+import { useNavigate } from 'react-router-dom';
@@ -11,9 +12,9 @@ function Box({ data, showSecondaryBox }) {
return (
-
Name: {data.profile?.displayName || 'N/A'} {data.profile?.lname || ''}
-
Contact Name: {data.displayName || 'N/A'}
+
{data.profile?.displayName || 'N/A'} {data.profile?.lname || ''}
Phone: {data.profile?.phone || 'N/A'}
+
Email : {data.profile?.email || 'N/A'}
State: {data.address?.state || 'N/A'}
@@ -25,6 +26,10 @@ function Box({ data, showSecondaryBox }) {
function Secondarybox({ data, hideSecondaryBox }) {
+
+ const {currentUser} = useAuth();
+ const navigate = useNavigate();
+
return (
Details:
@@ -46,7 +51,7 @@ function Secondarybox({ data, hideSecondaryBox }) {
Bank: {data.bank?.bank_name || 'N/A'}
-
+
@@ -173,11 +178,11 @@ function FDashboard() {
const [searchQuery,setSearchQuery] = useState('');
return (
- <>
+
setSearchQuery(e.target.value)} />
- >
+
);
}
diff --git a/client/src/components/Farmer/FDashboard.module.css b/client/src/components/Farmer/FDashboard.module.css
index 48a2286..47c6d87 100644
--- a/client/src/components/Farmer/FDashboard.module.css
+++ b/client/src/components/Farmer/FDashboard.module.css
@@ -8,6 +8,9 @@
body {
/* overflow-x: hidden; */
}
+.dashbody{
+ background-color: white;
+}
.headerfd {
height: 17vh;
background-color: green;
@@ -110,6 +113,7 @@ body {
justify-content: center;
gap: 250px;
border: 0.5px solid rgb(159, 159, 159);
+ background-color: white;
}
.search-box-div {
display: flex;
@@ -218,7 +222,7 @@ body {
}
.primary-details {
width: 70%;
- font-size: 16px;
+ font-size: 22px;
/* padding: 30px;
line-height: 25px; */
display: flex;
@@ -229,6 +233,7 @@ body {
gap: 10px;
/* border: 1px solid; */
/* line-height: 20px; */
+ text-transform: capitalize;
}
.primary-btn {
display: flex;
@@ -250,7 +255,7 @@ body {
box-shadow: none;
}
.primary-btn button:hover {
- background-color: white;
+ background: white;
color: #00b207;
}
::-webkit-scrollbar {
@@ -442,4 +447,7 @@ body {
border-radius: 7rem;
border: 0.5px solid #ccc;
filter: opacity(0.8);
+}
+.emu{
+ overflow: hidden;
}
\ No newline at end of file
diff --git a/client/src/components/Farmer/FarmNav.jsx b/client/src/components/Farmer/FarmNav.jsx
index 33222a4..b734d76 100644
--- a/client/src/components/Farmer/FarmNav.jsx
+++ b/client/src/components/Farmer/FarmNav.jsx
@@ -119,6 +119,12 @@ function Navbar() {
>
Notifications
+
navigate('/chat', { state: { userType:'farmer'} })}
+ >
+ Chats
+
{/*
handleNavClick('/contact')}
diff --git a/client/src/components/Farmer/FarmSell.jsx b/client/src/components/Farmer/FarmSell.jsx
index db497f5..3c9d92d 100644
--- a/client/src/components/Farmer/FarmSell.jsx
+++ b/client/src/components/Farmer/FarmSell.jsx
@@ -294,7 +294,7 @@ function FarmSell() {
};
return (
- <>
+
- >
+
);
}
diff --git a/client/src/components/Farmer/FarmSell.module.css b/client/src/components/Farmer/FarmSell.module.css
index 934b279..55fc12f 100644
--- a/client/src/components/Farmer/FarmSell.module.css
+++ b/client/src/components/Farmer/FarmSell.module.css
@@ -6,8 +6,11 @@
body {
/* overflow-x: hidden; */
}
+.divbody{
+ background-color: white;
+}
.headfs {
- height: 17vh;
+ height: 140px;
background-color: green;
border: 1px solid #ccc;
}
@@ -102,6 +105,7 @@ body {
font-weight: 600;
text-align: center;
}
+
.navs ul li:hover{
/* background-color: #1fe726;
border :1px solid #1fe726; */
@@ -130,6 +134,7 @@ body {
justify-content: center;
gap: 250px;
border: 0.5px solid rgb(159, 159, 159);
+ background-color: white;
}
.search-box-div {
display: flex;
@@ -210,7 +215,7 @@ body {
height: 75vh;
background-color: white;
display: grid;
- grid-template-columns: 1fr 1fr 1fr 1fr;
+ grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
/* margin: 15px; */
padding-top: 15px;
justify-items: center;
@@ -233,7 +238,7 @@ body {
box-shadow: 2px 2px 2px rgba(8, 0, 0, 0.4);
}
.box-crop img {
- width: 90%;
+ width: 100%;
height: 80%;
/* justify-self: center; */
border-radius: 0.3rem;
@@ -254,8 +259,9 @@ body {
}
.box-crop input[type='radio']:checked {
- background-color: #00b207;
- border-color: #00b207;
+ background: linear-gradient(to left top, #a25fff, #7b9afe, #11cbbb, #25fc4c);
+border-color: yellowgreen;
+
}
/* ````````````````````````````````````````````````` */
.formbox {
diff --git a/client/src/components/LandingPage/LandingPage.jsx b/client/src/components/LandingPage/LandingPage.jsx
index d6264a3..a8b7fc6 100644
--- a/client/src/components/LandingPage/LandingPage.jsx
+++ b/client/src/components/LandingPage/LandingPage.jsx
@@ -75,8 +75,8 @@ export default function LandingPage() {