- random cleanup

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-01-12 18:21:21 -05:00
parent d360bcbb71
commit 34c332e077
2 changed files with 142 additions and 126 deletions

View File

@@ -56,15 +56,12 @@ export default function ProductionListDate({
"production-completion-soon"));
}
// TODO - Client Update = Why is the overlay a card?
return (
<Dropdown
trigger={["click"]}
onOpenChange={(v) => setOpen(v)}
open={open}
style={{
height: "19px",
}}
overlay={
const overlayMenu = {
items: [
{
key: 'overlayItem1',
label:
<Card style={{padding: "1rem"}} onClick={(e) => e.stopPropagation()}>
<FormDatePicker
onClick={(e) => e.stopPropagation()}
@@ -87,6 +84,18 @@ export default function ProductionListDate({
</Button>
</Card>
}
]
}
return (
<Dropdown
trigger={["click"]}
onOpenChange={(v) => setOpen(v)}
open={open}
style={{
height: "19px",
}}
menu={overlayMenu}
>
<div
onClick={() => setOpen(true)}

View File

@@ -89,16 +89,11 @@ export function ProductionLastContacted({ currentUser, record }) {
}
}, [open, form, record.date_last_contacted]);
// TODO - Client Update - Why is this a card?
return (
<div>
<Dropdown
//trigger={["click"]}
open={open}
style={{
height: "19px",
}}
overlay={
const overlayMenu = {
items: [
{
key: 'overlay-item-1',
label:
<Card
style={{ padding: "1rem" }}
onClick={(e) => e.stopPropagation()}
@@ -130,6 +125,18 @@ export function ProductionLastContacted({ currentUser, record }) {
</Form>
</Card>
}
]
}
return (
<div>
<Dropdown
//trigger={["click"]}
open={open}
style={{
height: "19px",
}}
menu={overlayMenu}
>
<div
onClick={() => setOpen(true)}