Browse Source

Merge pull request 'styling gantt modal' (#30) from dev-wahyun into staging

Reviewed-on: ibnu/generic-ospro-frontend#30
pull/1/head
farhantock 1 year ago
parent
commit
9fb80250c5
  1. 43
      src/views/SimproV2/CreatedProyek/DialogGantt.js

43
src/views/SimproV2/CreatedProyek/DialogGantt.js

@ -247,27 +247,28 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName
) : (
<div>Gantt Project {proyekName}</div>
)}
<Select
placeholder='Search Gantt Name'
showSearch
filterOption={(inputValue, option) =>
option.children.toLowerCase().includes(inputValue.toLowerCase())
}
onChange={(val) => setSearchGantt(val)}
style={{ width: 200 }}
>
{dataGantt.map((res) => (
<Option key={res.id} value={res.id}>
{res.name_version}
</Option>
))}
</Select>
{!hierarchyId && (
<Button onClick={handleOpenDialogForm} size='sm' color="primary">
<i className='fa fa-plus'></i>
</Button>
)}
<div style={{ display:'flex'}}>
<Select
placeholder='Search Gantt Name'
showSearch
filterOption={(inputValue, option) =>
option.children.toLowerCase().includes(inputValue.toLowerCase())
}
onChange={(val) => setSearchGantt(val)}
style={{ width: 200, marginRight:'10px' }}
>
{dataGantt.map((res) => (
<Option key={res.id} value={res.id}>
{res.name_version}
</Option>
))}
</Select>
{!hierarchyId && (
<Button onClick={handleOpenDialogForm} size='sm' color="primary">
<i className='fa fa-plus'></i>
</Button>
)}
</div>
</ModalHeader>
<ModalBody>

Loading…
Cancel
Save