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>
|
||||
Client
|
||||
</Label>
|
||||
<select
|
||||
className="select2 form-select form-select-sm"
|
||||
aria-label="Default select example"
|
||||
{...register("clientId", {
|
||||
required: "Client is required",
|
||||
valueAsNumber: false,
|
||||
})}
|
||||
>
|
||||
{isLoading ? (
|
||||
<option>Loading...</option>
|
||||
) : (
|
||||
<>
|
||||
<option value="">Select Client</option>
|
||||
{organization?.data?.map((org) => (
|
||||
<option key={org.id} value={org.id}>
|
||||
{org.name}
|
||||
</option>
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</select>
|
||||
<div className="d-flex align-items-center gap-2">
|
||||
<select
|
||||
className="select2 form-select form-select-sm flex-grow-1"
|
||||
aria-label="Default select example"
|
||||
{...register("clientId", {
|
||||
required: "Client is required",
|
||||
valueAsNumber: false,
|
||||
})}
|
||||
>
|
||||
{isLoading ? (
|
||||
<option>Loading...</option>
|
||||
) : (
|
||||
<>
|
||||
<option value="">Select Client</option>
|
||||
{organization?.data?.map((org) => (
|
||||
<option key={org.id} value={org.id}>
|
||||
{org.name}
|
||||
</option>
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</select>
|
||||
<i
|
||||
className="bx bx-plus-circle bx-xs cursor-pointer text-primary"
|
||||
/>
|
||||
</div>
|
||||
{errors?.clientId && (
|
||||
<span className="danger-text">{errors.clientId.message}</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="col-12 mb-2">
|
||||
<Label htmlFor="name" required>
|
||||
Project Name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user