From a05656177314a8d6d5abb9164d0e253fa475ec0f Mon Sep 17 00:00:00 2001 From: pramod mahajan Date: Sat, 2 Aug 2025 18:42:54 +0530 Subject: [PATCH] changed label of employee to "Reimburse By" --- src/components/Expenses/ViewExpense.jsx | 2 +- src/components/common/EmployeeSearchInput.jsx | 33 ++++++++++++------- 2 files changed, 23 insertions(+), 12 deletions(-) diff --git a/src/components/Expenses/ViewExpense.jsx b/src/components/Expenses/ViewExpense.jsx index 663c6ff5..3f10f3fd 100644 --- a/src/components/Expenses/ViewExpense.jsx +++ b/src/components/Expenses/ViewExpense.jsx @@ -488,7 +488,7 @@ const ViewExpense = ({ ExpenseId }) => { )}
- + { +const EmployeeSearchInput = ({ control, name, projectId,placeholder }) => { const { field: { onChange, value, ref }, fieldState: { error }, @@ -40,7 +41,7 @@ const EmployeeSearchInput = ({ control, name, projectId }) => { type="text" ref={ref} className={`form-control form-control-sm`} - placeholder="Search employee..." + placeholder={placeholder} value={search} onChange={(e) => { setSearch(e.target.value); @@ -54,7 +55,7 @@ const EmployeeSearchInput = ({ control, name, projectId }) => { {showDropdown && (employees?.data?.length > 0 || isLoading) && (
    {isLoading ? ( @@ -64,14 +65,24 @@ const EmployeeSearchInput = ({ control, name, projectId }) => { ) : ( employees?.data?.map((emp) => ( -
  • handleSelect(emp)} - > - {emp.firstName} {emp.lastName} -
  • +
  • handleSelect(emp)} + > +
    + + + {`${emp?.firstName} ${emp?.lastName}`.trim()} + +
    +
  • )) )}