In Choose Orgainzation popup Find Organization and Search box show in one line.

This commit is contained in:
Kartik Sharma 2025-09-25 11:46:12 +05:30
parent ccdfc193c6
commit 49eaf857ad

View File

@ -70,8 +70,8 @@ const OrgPickerfromTenant = ({ title }) => {
return (
<div className="d-block">
<div className="text-start mb-1">
<Label className="text-secondary">{title}</Label>
<div className="d-flex align-items-center gap-2 mb-1">
<Label className="mb-0">{title}</Label>
<input
type="text"
value={searchText}
@ -81,6 +81,7 @@ const OrgPickerfromTenant = ({ title }) => {
/>
</div>
{/* ---- Organization list ---- */}
{isLoading ? (
<div>Loading....</div>
@ -109,27 +110,27 @@ const OrgPickerfromTenant = ({ title }) => {
<tbody>
{Array.isArray(data.data) && data.data.length > 0
? data.data.map((row, i) => (
<tr key={i}>
{contactList.map((col) => (
<td key={col.key} className={col.align}>
{col.getValue(row)}
</td>
))}
<td className="sticky-action-column p-0 bg-white">
<div className="p-1">
<button
type="submit"
className="btn btn-sm btn-primary"
onClick={() =>
onOpen({ startStep: 3, orgData: row })
}
>
Select
</button>
</div>
<tr key={i}>
{contactList.map((col) => (
<td key={col.key} className={col.align}>
{col.getValue(row)}
</td>
</tr>
))
))}
<td className="sticky-action-column p-0 bg-white">
<div className="p-1">
<span
type="submit"
className="btn btn-sm"
onClick={() =>
onOpen({ startStep: 3, orgData: row })
}
>
<i class='bx bx-right-arrow-circle text-primary'></i>
</span>
</div>
</td>
</tr>
))
: null}
</tbody>
</table>