@@ -85,18 +85,18 @@ const ViewPositionHolder = () => {
8585 } ;
8686
8787 return (
88- < div className = "min-h-screen bg-white px-4 " >
89- < div className = "max-w-7xl mx-auto " >
88+ < div className = "min-h-screen bg-white" >
89+ < div className = "max-w-7xl" >
9090 { /* Header with Search and Filters */ }
9191 < div className = "bg-white rounded-lg mb-6" >
9292 < div className = "space-y-4" >
93- < div className = "flex :flex-row gap-4 " >
93+ < div className = "flex :flex-row gap-2 " >
9494 < SearchInput
9595 value = { searchTerm }
9696 onChange = { setSearchTerm }
9797 placeholder = "Search by name, email, ID, position, or POR ID..."
9898 />
99- < div className = "flex flex-wrap gap-3 " >
99+ < div className = "flex flex-wrap gap-2 " >
100100 < select
101101 value = { selectedStatus }
102102 onChange = { ( e ) => setSelectedStatus ( e . target . value ) }
@@ -153,61 +153,6 @@ const ViewPositionHolder = () => {
153153 onEdit = { ( ) => handleEdit ( holder ) }
154154 onDelete = { ( ) => handleDelete ( holder ) }
155155 />
156- // <div
157- // key={holder._id}
158- // className="bg-white rounded-lg border-2 border-black hover:shadow-md transition-shadow flex flex-col"
159- // >
160- // <div className="p-4 flex-grow">
161- // <div className="flex items-start justify-between mb-3">
162- // <div className="flex-1">
163- // <h3 className="font-semibold text-black text-lg">
164- // {holder.user_id?.personal_info?.name || "N/A"}
165- // </h3>
166- // <p className="text-sm text-black truncate">
167- // {holder.user_id?.user_id || "N/A"} •{" "}
168- // {holder.user_id?.username || "N/A"}
169- // </p>
170- // </div>
171- // <span
172- // className={`px-2 py-1 ml-2 rounded-full text-xs font-medium flex-shrink-0 flex items-center gap-1 ${getStatusColor(holder.status)}`}
173- // >
174- // {getStatusIcon(holder.status)}
175- // {holder.status?.charAt(0).toUpperCase() +
176- // holder.status?.slice(1) }
177- // </span>
178- // </div>
179- // <div>
180- // <p className="font-medium text-black">
181- // {holder.position_id?.title || "Unknown Position"}
182- // </p>
183- // <p className="text-sm text-black">
184- // {holder.position_id?.unit_id?.name || "Unknown Dept"}
185- // </p>
186- // </div>
187- // </div>
188- // <div className="p-4 border-t border-[#DCD3C9]">
189- // <div className="flex gap-2">
190- // <button
191- // onClick={() => handleViewDetails(holder)}
192- // className="flex-1 px-3 py-2 bg-black text-white text-sm rounded-lg hover:bg-[#856A5D] transition-colors flex items-center justify-center gap-1"
193- // >
194- // <Eye className="w-4 h-4" /> View
195- // </button>
196- // <button
197- // onClick={() => handleEdit(holder)}
198- // className="px-3 py-2 bg-[#F5F1EC] text-black text-sm rounded-lg hover:bg-[#EAE0D5] transition-colors"
199- // >
200- // <Edit className="w-4 h-4" />
201- // </button>
202- // <button
203- // onClick={() => handleDelete(holder)}
204- // className="px-3 py-2 bg-red-100 text-red-700 text-sm rounded-lg hover:bg-red-200 transition-colors"
205- // >
206- // <Trash2 className="w-4 h-4" />
207- // </button>
208- // </div>
209- // </div>
210- // </div>
211156 ) ) }
212157 </ div >
213158
0 commit comments