@fayz-ai/plugin-crm 0.17.0 → 0.17.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3439,18 +3439,12 @@ function DealCardModal({ dealId, open, onClose, onViewLead, onViewQuote, onViewC
3439
3439
  ]
3440
3440
  }
3441
3441
  ) : null,
3442
- onCreateQuote && lead && /* @__PURE__ */ jsxs(Button, { size: "sm", variant: "outline", onClick: () => {
3443
- onCreateQuote(lead.id);
3444
- onClose();
3445
- }, children: [
3442
+ onCreateQuote && lead && /* @__PURE__ */ jsxs(Button, { size: "sm", variant: "outline", onClick: () => onCreateQuote(lead.id), children: [
3446
3443
  /* @__PURE__ */ jsx(FileText, { className: "h-3 w-3" }),
3447
3444
  " ",
3448
3445
  t2("crm.leadDetail.createQuote")
3449
3446
  ] }),
3450
- onViewLead && lead && /* @__PURE__ */ jsxs(Button, { size: "sm", variant: "ghost", onClick: () => {
3451
- onViewLead(lead.id);
3452
- onClose();
3453
- }, children: [
3447
+ onViewLead && lead && /* @__PURE__ */ jsxs(Button, { size: "sm", variant: "ghost", onClick: () => onViewLead(lead.id), children: [
3454
3448
  t2("crm.dealSidebar.viewLeadProfile"),
3455
3449
  " ",
3456
3450
  /* @__PURE__ */ jsx(ArrowRight, { className: "h-3 w-3" })
@@ -3536,10 +3530,7 @@ function DealCardModal({ dealId, open, onClose, onViewLead, onViewQuote, onViewC
3536
3530
  "button",
3537
3531
  {
3538
3532
  type: "button",
3539
- onClick: () => {
3540
- onViewCompany?.(company.id);
3541
- onClose();
3542
- },
3533
+ onClick: () => onViewCompany?.(company.id),
3543
3534
  disabled: !onViewCompany,
3544
3535
  className: "flex w-full items-center gap-3 rounded-card border bg-card px-4 py-3 text-left shadow-sm transition-colors enabled:hover:bg-muted/20",
3545
3536
  children: [
@@ -3614,10 +3605,7 @@ function DealCardModal({ dealId, open, onClose, onViewLead, onViewQuote, onViewC
3614
3605
  quotes2.length > 0 && /* @__PURE__ */ jsx(Section, { title: t2("crm.dealSidebar.quotes"), children: /* @__PURE__ */ jsx("div", { className: "divide-y rounded-card border", children: quotes2.map((q) => /* @__PURE__ */ jsxs(
3615
3606
  "div",
3616
3607
  {
3617
- onClick: () => {
3618
- onViewQuote?.(q.id);
3619
- onClose();
3620
- },
3608
+ onClick: () => onViewQuote?.(q.id),
3621
3609
  className: "flex cursor-pointer items-center justify-between px-4 py-2.5 transition-colors hover:bg-muted/20",
3622
3610
  children: [
3623
3611
  /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [