|  |  | 
 |  |  |         width: 90 | 
 |  |  |     }, | 
 |  |  |     '& .opt': { | 
 |  |  |         width: 180 | 
 |  |  |         width: 210 | 
 |  |  |     }, | 
 |  |  | })); | 
 |  |  |  | 
 |  |  | 
 |  |  |     const [drawerVal, setDrawerVal] = useState(false); | 
 |  |  |  | 
 |  |  |     const CreateTaskButton = () => { | 
 |  |  |         const record = useRecordContext();         | 
 |  |  |         const record = useRecordContext(); | 
 |  |  |         const notify = useNotify(); | 
 |  |  |         const refresh = useRefresh(); | 
 |  |  |         const { selectedIds, onUnselectItems, data } = useListContext(); | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     const CreateTaskRowButton = () => { | 
 |  |  |         const record = useRecordContext();         | 
 |  |  |         const record = useRecordContext(); | 
 |  |  |         const refresh = useRefresh(); | 
 |  |  |  | 
 |  |  |         const createTask = (event) => { | 
 |  |  | 
 |  |  |             setSource([record]) | 
 |  |  |             refresh() | 
 |  |  |         } | 
 |  |  |      | 
 |  |  |  | 
 |  |  |         return ( | 
 |  |  |             <> | 
 |  |  |                 <Button onClick={(event) => createTask(event)} label={"toolbar.createTask"}> | 
 |  |  | 
 |  |  |                     bulkActionButtons={ | 
 |  |  |                         <> | 
 |  |  |                             <CreateTaskButton /> | 
 |  |  |                             <BulkDeleteButton mutationMode={OPERATE_MODE} /> | 
 |  |  |                             {/* <BulkDeleteButton mutationMode={OPERATE_MODE} /> */} | 
 |  |  |                         </>} | 
 |  |  |                     rowClick='edit' | 
 |  |  |                     rowClick={false} | 
 |  |  |                     omit={['id', 'createTime', 'createBy', 'memo']} | 
 |  |  |                 > | 
 |  |  |                     <NumberField source="id" /> | 
 |  |  | 
 |  |  |                     <WrapperField cellClassName="opt" label="common.field.opt"> | 
 |  |  |                         <EditButton label="toolbar.detail" sx={{ padding: '1px', fontSize: '.75rem' }} /> | 
 |  |  |                         <CreateTaskRowButton /> | 
 |  |  |                         {/* <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> */} | 
 |  |  |                         <DeleteButton sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> | 
 |  |  |                     </WrapperField> | 
 |  |  |                 </StyledDatagrid> | 
 |  |  |             </List> |