@@ -24,7 +24,7 @@ const CategoriesAndGenderDetailsPopup = () => {
24
24
const [ alert , setAlert ] = useState < boolean > ( false ) ;
25
25
26
26
// check for gender also (in future)
27
- const [ gender , setGender ] = useState < string > ( "both " ) ;
27
+ const [ gender , setGender ] = useState < string > ( "" ) ;
28
28
29
29
const router = useRouter ( ) ;
30
30
@@ -107,10 +107,10 @@ const CategoriesAndGenderDetailsPopup = () => {
107
107
return (
108
108
< >
109
109
{ alert && (
110
- < Alert
111
- message = "Oops! We couldn't find a user matching your search"
112
- setFunction = { setAlert }
113
- />
110
+ < Alert
111
+ message = "Oops! We couldn't find a user matching your search"
112
+ setFunction = { setAlert }
113
+ />
114
114
) }
115
115
< div className = "flex flex-col justify-between bg-[#222831] rounded p-4 w-[30%] h-[auto] m-auto" >
116
116
< MdOutlineCancel className = "self-end text-2xl font-md text-gray-400 cursor-pointer hover:text-gray-50" />
@@ -125,7 +125,9 @@ const CategoriesAndGenderDetailsPopup = () => {
125
125
height = { 30 }
126
126
width = { 40 }
127
127
alt = "profile-picture"
128
- className = "hover:border-[#EE99C2] hover:border-2 cursor-pointer"
128
+ className = { `hover:border-[#EE99C2] hover:border-2 cursor-pointer ${
129
+ gender === "female" && "border-[#EE99C2] border-2"
130
+ } `}
129
131
onClick = { ( ) => setGender ( "female" ) }
130
132
/>
131
133
< h6 className = "text-gray-200 text-sm mt-2" > female</ h6 >
@@ -136,7 +138,9 @@ const CategoriesAndGenderDetailsPopup = () => {
136
138
height = { 30 }
137
139
width = { 40 }
138
140
alt = "profile-picture"
139
- className = "hover:border-[#5755FE] hover:border-2 cursor-pointer"
141
+ className = { `hover:border-[#5755FE] hover:border-2 cursor-pointer ${
142
+ gender === "male" && "border-[#5755FE] border-2"
143
+ } `}
140
144
onClick = { ( ) => setGender ( "male" ) }
141
145
/>
142
146
< h6 className = "text-gray-200 text-sm mt-2" > male</ h6 >
@@ -147,7 +151,9 @@ const CategoriesAndGenderDetailsPopup = () => {
147
151
height = { 30 }
148
152
width = { 40 }
149
153
alt = "profile-picture"
150
- className = "hover:border-[#3AA6B9] hover:border-2 cursor-pointer"
154
+ className = { `hover:border-[#3AA6B9] hover:border-2 cursor-pointer ${
155
+ gender === "both" && "border-[#3AA6B9] border-2"
156
+ } `}
151
157
onClick = { ( ) => setGender ( "both" ) }
152
158
/>
153
159
< h6 className = "text-gray-200 text-sm mt-2" > both</ h6 >
0 commit comments