diff --git a/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckAdminActions.tsx b/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckAdminActions.tsx index ccd1536f8..b7dec43cb 100644 --- a/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckAdminActions.tsx +++ b/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckAdminActions.tsx @@ -88,47 +88,54 @@ export function BackgroundCheckAdminActions({ }; return ( - - {showRetry && ( - - )} - {showCancel && ( - - )} - {showDelete && !confirmingDelete && ( - - )} - {showDelete && confirmingDelete && ( - <> +
+ + {showRetry && ( + + )} + {showCancel && ( + )} + {showDelete && !confirmingDelete && ( - - )} - + )} + {showDelete && confirmingDelete && ( + <> + + + + )} + +
); } diff --git a/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckStatusView.tsx b/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckStatusView.tsx index 4b3681e72..4f38d42ba 100644 --- a/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckStatusView.tsx +++ b/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/BackgroundCheckStatusView.tsx @@ -2,6 +2,7 @@ import { apiClient } from '@/lib/api-client'; import { Badge, Button, Grid, HStack, Stack, Text } from '@trycompai/design-system'; +import type { ReactNode } from 'react'; import { toast } from 'sonner'; import useSWR from 'swr'; import { BackgroundCheckReport } from './BackgroundCheckReport'; @@ -33,11 +34,13 @@ export function BackgroundCheckStatusView({ confirmation, memberId, organizationId, + actions, }: { backgroundCheck: BackgroundCheckRecord; confirmation?: string | null; memberId?: string; organizationId?: string; + actions?: ReactNode; }) { const isComplete = isCompletedBackgroundCheck(backgroundCheck.status); const customAttachmentsKey = @@ -107,6 +110,8 @@ export function BackgroundCheckStatusView({ + + {actions} diff --git a/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/EmployeeBackgroundCheck.tsx b/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/EmployeeBackgroundCheck.tsx index 94161c4c8..cb1379f6c 100644 --- a/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/EmployeeBackgroundCheck.tsx +++ b/apps/app/src/app/(app)/[orgId]/people/[employeeId]/components/EmployeeBackgroundCheck.tsx @@ -246,18 +246,20 @@ export function EmployeeBackgroundCheck({ canUpdate={canRequest} onToggle={handleToggleExempt} /> - { - mutateBackgroundCheck(next, { revalidate: false }); - }} - /> { + mutateBackgroundCheck(next, { revalidate: false }); + }} + /> + } /> );