improvement: icons added to prosthesis types catalog.
This commit is contained in:
@@ -24,6 +24,7 @@ import { casesApi } from '@/lib/api/cases';
|
||||
import { tasksApi } from '@/lib/api/tasks';
|
||||
import { prosthesisCatalogApi } from '@/lib/api/prosthesis-catalog';
|
||||
import { treatmentCatalogApi } from '@/lib/api/treatment-catalog';
|
||||
import { prosthesisJobPathLabel } from '@/components/treatment/prosthesisJobPath';
|
||||
import { treatmentTypeLabelFromCatalog } from '@/components/shared/treatmentTypeDisplay';
|
||||
import { Badge } from '@/components/ui/shared/Badge';
|
||||
import { Button } from '@/components/ui/shared/Button';
|
||||
@@ -45,6 +46,7 @@ const PAGE_SIZE = 10;
|
||||
|
||||
export function CasesPage() {
|
||||
const t = useTranslations('cases');
|
||||
const tProsthesis = useTranslations('prosthesis');
|
||||
const tErrors = useTranslations('errors');
|
||||
const tCommon = useTranslations('common');
|
||||
const { currentOrganization, user } = useAuth();
|
||||
@@ -90,8 +92,8 @@ export function CasesPage() {
|
||||
|
||||
const prosthesisLabel = useCallback(
|
||||
(code: string) =>
|
||||
prosthesisCatalog.find((entry) => entry.code === code)?.label ?? code,
|
||||
[prosthesisCatalog],
|
||||
prosthesisJobPathLabel(code, prosthesisCatalog, (key) => tProsthesis(key as never)),
|
||||
[prosthesisCatalog, tProsthesis],
|
||||
);
|
||||
|
||||
const treatmentDetailLabel = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user