Adding Plus icon in Create Services.
This commit is contained in:
parent
f4f14127b7
commit
d4bb7373f2
@ -117,31 +117,37 @@ const ManageServiceProject = ({ serviceProjectId, onClose }) => {
|
|||||||
<Label htmlFor="name" required>
|
<Label htmlFor="name" required>
|
||||||
Client
|
Client
|
||||||
</Label>
|
</Label>
|
||||||
<select
|
<div className="d-flex align-items-center gap-2">
|
||||||
className="select2 form-select form-select-sm"
|
<select
|
||||||
aria-label="Default select example"
|
className="select2 form-select form-select-sm flex-grow-1"
|
||||||
{...register("clientId", {
|
aria-label="Default select example"
|
||||||
required: "Client is required",
|
{...register("clientId", {
|
||||||
valueAsNumber: false,
|
required: "Client is required",
|
||||||
})}
|
valueAsNumber: false,
|
||||||
>
|
})}
|
||||||
{isLoading ? (
|
>
|
||||||
<option>Loading...</option>
|
{isLoading ? (
|
||||||
) : (
|
<option>Loading...</option>
|
||||||
<>
|
) : (
|
||||||
<option value="">Select Client</option>
|
<>
|
||||||
{organization?.data?.map((org) => (
|
<option value="">Select Client</option>
|
||||||
<option key={org.id} value={org.id}>
|
{organization?.data?.map((org) => (
|
||||||
{org.name}
|
<option key={org.id} value={org.id}>
|
||||||
</option>
|
{org.name}
|
||||||
))}
|
</option>
|
||||||
</>
|
))}
|
||||||
)}
|
</>
|
||||||
</select>
|
)}
|
||||||
|
</select>
|
||||||
|
<i
|
||||||
|
className="bx bx-plus-circle bx-xs cursor-pointer text-primary"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
{errors?.clientId && (
|
{errors?.clientId && (
|
||||||
<span className="danger-text">{errors.clientId.message}</span>
|
<span className="danger-text">{errors.clientId.message}</span>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="col-12 mb-2">
|
<div className="col-12 mb-2">
|
||||||
<Label htmlFor="name" required>
|
<Label htmlFor="name" required>
|
||||||
Project Name
|
Project Name
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user