Majority of Dropdown Overlay Menu refactors.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -15,20 +15,18 @@ export function JobsDetailChangeFilehandler({ disabled, form, bodyshop }) {
|
||||
form.setFieldsValue(est);
|
||||
};
|
||||
|
||||
const menu = (
|
||||
<Menu
|
||||
onClick={handleClick}
|
||||
style={{
|
||||
columnCount: Math.floor(bodyshop.md_filehandlers.length / 10) + 1,
|
||||
}}
|
||||
items={bodyshop.md_filehandlers.map((est, idx) => ({
|
||||
key: idx,
|
||||
label: `${est.ins_ct_fn} ${est.ins_ct_ln}`,
|
||||
value: est,
|
||||
style: { breakInside: "avoid" },
|
||||
}))}
|
||||
/>
|
||||
);
|
||||
const menu = {
|
||||
items: bodyshop.md_filehandlers.map((est, idx) => ({
|
||||
key: idx,
|
||||
label: `${est.ins_ct_fn} ${est.ins_ct_ln}`,
|
||||
value: est,
|
||||
style: { breakInside: "avoid" },
|
||||
})),
|
||||
style: {
|
||||
columnCount: Math.floor(bodyshop.md_filehandlers.length / 10) + 1,
|
||||
},
|
||||
onClick: handleClick
|
||||
}
|
||||
|
||||
return (
|
||||
<Dropdown menu={menu} disabled={disabled}>
|
||||
|
||||
Reference in New Issue
Block a user