mirror of
https://github.com/documenso/documenso.git
synced 2026-07-26 18:04:55 +10:00
f66f01a09a
Eliminates dual React ecosystems and reduces dependency duplication by consolidating on a single React version and expanding the pnpm workspace catalog. - Upgrade all packages from React 18 to React 19 - Remove @types/react and @types/node overrides (no longer needed with single React version) - Standardise @types/node to ^22 across all packages - Add prisma-kysely>@prisma/internals override to eliminate old prisma 6.16.x subtree - Fix React 19 type changes: useRef requires initial value, JSX namespace needs explicit import, RefObject includes null - Expand catalog with 14 new entries (ai, dotenv, pino, playwright, prisma tooling, nodemailer, pdfjs-dist, etc.) - Catalog radix-ui, next, lucide-react, postcss, and typescript for docs/openpage-api alignment - Run pnpm dedupe to collapse peer-dep context duplicates
13 lines
437 B
TypeScript
13 lines
437 B
TypeScript
import React from 'react';
|
|
|
|
import type { RecipientRole } from '@prisma/client';
|
|
import { BadgeCheck, Copy, Eye, PencilLine, User } from 'lucide-react';
|
|
|
|
export const ROLE_ICONS: Record<RecipientRole, React.ReactNode> = {
|
|
SIGNER: <PencilLine className="h-4 w-4" />,
|
|
APPROVER: <BadgeCheck className="h-4 w-4" />,
|
|
CC: <Copy className="h-4 w-4" />,
|
|
VIEWER: <Eye className="h-4 w-4" />,
|
|
ASSISTANT: <User className="h-4 w-4" />,
|
|
};
|