Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,15 @@ import type { SectionProps } from '../../contentRegistry';

export default function ParticipantsSection({
decisionProfileId,
decisionName,
}: SectionProps) {
return (
<div className="px-4 md:px-24 md:py-16">
<div className="mx-auto max-w-5xl">
<ProfileUsersAccess profileId={decisionProfileId} />
<ProfileUsersAccess
profileId={decisionProfileId}
processName={decisionName}
/>
</div>
</div>
);
Expand Down
9 changes: 8 additions & 1 deletion apps/app/src/components/decisions/ProfileUsersAccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ type SortColumn = 'name' | 'email' | 'role';

const ITEMS_PER_PAGE = 25;

export const ProfileUsersAccess = ({ profileId }: { profileId: string }) => {
export const ProfileUsersAccess = ({
profileId,
processName,
}: {
profileId: string;
processName?: string;
}) => {
const t = useTranslations();
const isMobile = useMediaQuery(`(max-width: ${screens.md})`);
const [searchQuery, setSearchQuery] = useState('');
Expand Down Expand Up @@ -119,6 +125,7 @@ export const ProfileUsersAccess = ({ profileId }: { profileId: string }) => {
roles={roles}
isMobile={isMobile}
invites={invites ?? []}
processName={processName}
/>

<Pagination
Expand Down
Loading
Loading