ahs-cti 0.0.16 → 0.0.17

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
@@ -82056,7 +82056,7 @@ var import_react33, import_jsx_runtime222, CampaignDialog, AddLeadDialog, fmtRec
82056
82056
  var init_campaigns = __esm({
82057
82057
  "call-control-sdk/lib/pages/campaigns/index.tsx"() {
82058
82058
  "use strict";
82059
- import_react33 = __toESM(require("react"));
82059
+ import_react33 = require("react");
82060
82060
  init_material();
82061
82061
  init_Add();
82062
82062
  init_Archive();
@@ -82428,16 +82428,7 @@ var init_campaigns = __esm({
82428
82428
  downloadLeadTemplate,
82429
82429
  exportLeads
82430
82430
  } = useLeads();
82431
- const displayLeads = import_react33.default.useMemo(() => {
82432
- const PENDING_STATES = ["PENDING", "SCHEDULED"];
82433
- const ts = (v) => v ? new Date(v).getTime() : 0;
82434
- return [...leads].sort((a2, b) => {
82435
- const ap = PENDING_STATES.includes((a2.status || "").toUpperCase());
82436
- const bp = PENDING_STATES.includes((b.status || "").toUpperCase());
82437
- if (ap !== bp) return ap ? -1 : 1;
82438
- return ts(a2.createdAt) - ts(b.createdAt);
82439
- });
82440
- }, [leads]);
82431
+ const displayLeads = leads;
82441
82432
  const { fetchQueues: fetchQueues4 } = useQueues();
82442
82433
  const [queueNameMap, setQueueNameMap] = (0, import_react33.useState)({});
82443
82434
  (0, import_react33.useEffect)(() => {