Skip to content

Commit

Permalink
feat(MembersRoute): pin action column to right side TASK-987 (#5348)
Browse files Browse the repository at this point in the history
### 💭 Notes
Followup change after TASK-1312 was done.
  • Loading branch information
magicznyleszek authored Dec 12, 2024
1 parent 8e473b8 commit 0a7cfb5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jsapp/js/account/organization/MembersRoute.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import useOrganizationMembersQuery from './membersQuery';

// Constants and types
import type {OrganizationMember} from './membersQuery';
import type {UniversalTableColumn} from 'jsapp/js/universalTable/universalTable.component';

// Styles
import styles from './membersRoute.module.scss';
Expand All @@ -29,7 +30,7 @@ export default function MembersRoute() {
);
}

const columns = [
const columns: Array<UniversalTableColumn<OrganizationMember>> = [
{
key: 'user__extra_details__name',
label: t('Name'),
Expand Down Expand Up @@ -103,6 +104,7 @@ export default function MembersRoute() {
key: 'url',
label: '',
size: 64,
isPinned: 'right',
cellFormatter: (member: OrganizationMember) => {
// There is no action that can be done on an owner
if (member.role === OrganizationUserRole.owner) {
Expand Down

0 comments on commit 0a7cfb5

Please sign in to comment.