Add teamId.

This commit is contained in:
Brian Cao 2023-08-25 13:38:52 -07:00
parent 86515d6456
commit 236a26136d
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ export function TeamMembers({ teamId, readOnly }) {
<>
<TeamMembersTable
onSave={handleSave}
teamId={teamId}
data={data}
readOnly={readOnly}
onFilterChange={handleFilterChange}

View File

@ -6,6 +6,7 @@ import SettingsTable from 'components/common/SettingsTable';
export function TeamMembersTable({
data = [],
teamId,
onSave,
readOnly,
filterValue,
@ -50,7 +51,7 @@ export function TeamMembersTable({
return (
!readOnly && (
<TeamMemberRemoveButton
teamId={row.teamId}
teamId={teamId}
userId={row.id}
disabled={user.id === row?.user?.id || row.role === ROLES.teamOwner}
onSave={onSave}