refactor fetched users into single array and replace Image tag with img
This commit is contained in:
@@ -2,16 +2,14 @@ import Option from "@/interfaces/option";
|
||||
import Select from "../Low/Select";
|
||||
|
||||
interface Props {
|
||||
teachers: Option[];
|
||||
corporates: Option[];
|
||||
approvers: Option[];
|
||||
selects: (Option | null | undefined)[];
|
||||
placeholder: string;
|
||||
onSelectChange: (numberOfSelects: number, index: number, value: Option | null) => void;
|
||||
}
|
||||
|
||||
export default function WorkflowStepSelects({
|
||||
teachers,
|
||||
corporates,
|
||||
approvers,
|
||||
selects,
|
||||
placeholder,
|
||||
onSelectChange,
|
||||
@@ -34,7 +32,7 @@ export default function WorkflowStepSelects({
|
||||
return (
|
||||
<div key={index} className="w-[275px]">
|
||||
<Select
|
||||
options={[...teachers, ...corporates]}
|
||||
options={approvers}
|
||||
value={option}
|
||||
onChange={(option) => onSelectChange(selects.length, index, option)}
|
||||
placeholder={placeholder}
|
||||
|
||||
Reference in New Issue
Block a user