mirror of
https://dev.azure.com/globalhealthx/EMR/_git/helix-engage
synced 2026-04-11 18:28:15 +00:00
fix: cleanup unused imports, restore campaigns, fix settings pagination syntax
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
|||||||
faPhoneArrowUp,
|
faPhoneArrowUp,
|
||||||
} from '@fortawesome/pro-duotone-svg-icons';
|
} from '@fortawesome/pro-duotone-svg-icons';
|
||||||
import { SearchLg } from '@untitledui/icons';
|
import { SearchLg } from '@untitledui/icons';
|
||||||
import { Table, TableCard } from '@/components/application/table/table';
|
import { Table } from '@/components/application/table/table';
|
||||||
import { Badge } from '@/components/base/badges/badges';
|
import { Badge } from '@/components/base/badges/badges';
|
||||||
import { Input } from '@/components/base/input/input';
|
import { Input } from '@/components/base/input/input';
|
||||||
import { Tabs, TabList, Tab } from '@/components/application/tabs/tabs';
|
import { Tabs, TabList, Tab } from '@/components/application/tabs/tabs';
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import type { FC, HTMLAttributes } from "react";
|
import type { FC, HTMLAttributes } from "react";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import {
|
import {
|
||||||
faBell,
|
|
||||||
faBullhorn,
|
faBullhorn,
|
||||||
faChartMixed,
|
faChartMixed,
|
||||||
faChevronLeft,
|
faChevronLeft,
|
||||||
@@ -50,9 +49,6 @@ const IconGear: FC<HTMLAttributes<HTMLOrSVGElement>> = ({ className }) => (
|
|||||||
const IconPhone: FC<HTMLAttributes<HTMLOrSVGElement>> = ({ className }) => (
|
const IconPhone: FC<HTMLAttributes<HTMLOrSVGElement>> = ({ className }) => (
|
||||||
<FontAwesomeIcon icon={faPhone} className={className} />
|
<FontAwesomeIcon icon={faPhone} className={className} />
|
||||||
);
|
);
|
||||||
const IconBell: FC<HTMLAttributes<HTMLOrSVGElement>> = ({ className }) => (
|
|
||||||
<FontAwesomeIcon icon={faBell} className={className} />
|
|
||||||
);
|
|
||||||
const IconClockRewind: FC<HTMLAttributes<HTMLOrSVGElement>> = ({ className }) => (
|
const IconClockRewind: FC<HTMLAttributes<HTMLOrSVGElement>> = ({ className }) => (
|
||||||
<FontAwesomeIcon icon={faClockRotateLeft} className={className} />
|
<FontAwesomeIcon icon={faClockRotateLeft} className={className} />
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ export const CampaignsPage = () => {
|
|||||||
iconLeading={({ className }: { className?: string }) => (
|
iconLeading={({ className }: { className?: string }) => (
|
||||||
<FontAwesomeIcon icon={faPenToSquare} className={className} />
|
<FontAwesomeIcon icon={faPenToSquare} className={className} />
|
||||||
)}
|
)}
|
||||||
onClick={(e) => {
|
onClick={(e: React.MouseEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
setEditCampaign(campaign);
|
setEditCampaign(campaign);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect, useMemo, useState } from 'react';
|
import { useEffect, useMemo, useState } from 'react';
|
||||||
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||||
import { faKey, faToggleOn, faToggleOff } from '@fortawesome/pro-duotone-svg-icons';
|
import { faKey, faToggleOn } from '@fortawesome/pro-duotone-svg-icons';
|
||||||
import { Avatar } from '@/components/base/avatar/avatar';
|
import { Avatar } from '@/components/base/avatar/avatar';
|
||||||
import { Badge } from '@/components/base/badges/badges';
|
import { Badge } from '@/components/base/badges/badges';
|
||||||
import { Button } from '@/components/base/buttons/button';
|
import { Button } from '@/components/base/buttons/button';
|
||||||
@@ -101,7 +101,7 @@ export const SettingsPage = () => {
|
|||||||
<div className="flex items-center justify-center py-12">
|
<div className="flex items-center justify-center py-12">
|
||||||
<p className="text-sm text-tertiary">Loading employees...</p>
|
<p className="text-sm text-tertiary">Loading employees...</p>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (<>
|
||||||
<Table>
|
<Table>
|
||||||
<Table.Header>
|
<Table.Header>
|
||||||
<Table.Head label="EMPLOYEE" />
|
<Table.Head label="EMPLOYEE" />
|
||||||
@@ -166,7 +166,7 @@ export const SettingsPage = () => {
|
|||||||
{totalPages > 1 && (
|
{totalPages > 1 && (
|
||||||
<div className="flex items-center justify-between border-t border-secondary px-5 py-3">
|
<div className="flex items-center justify-between border-t border-secondary px-5 py-3">
|
||||||
<span className="text-xs text-tertiary">
|
<span className="text-xs text-tertiary">
|
||||||
{(page - 1) * PAGE_SIZE + 1}–{Math.min(page * PAGE_SIZE, filtered.length)} of {filtered.length}
|
{(page - 1) * PAGE_SIZE + 1}–{Math.min(page * PAGE_SIZE, filtered.length)} of {filtered.length}
|
||||||
</span>
|
</span>
|
||||||
<div className="flex items-center gap-1">
|
<div className="flex items-center gap-1">
|
||||||
<button onClick={() => setPage(Math.max(1, page - 1))} disabled={page === 1}
|
<button onClick={() => setPage(Math.max(1, page - 1))} disabled={page === 1}
|
||||||
@@ -176,7 +176,7 @@ export const SettingsPage = () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
)}
|
</> )}
|
||||||
</TableCard.Root>
|
</TableCard.Root>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user