|
|
|
|
@ -18,7 +18,8 @@ const Item = React.memo(
|
|
|
|
|
phone,
|
|
|
|
|
isAdmin,
|
|
|
|
|
isLocked,
|
|
|
|
|
isLockedAdmin,
|
|
|
|
|
isRoleLocked,
|
|
|
|
|
isDeletionLocked,
|
|
|
|
|
emailUpdateForm,
|
|
|
|
|
passwordUpdateForm,
|
|
|
|
|
usernameUpdateForm,
|
|
|
|
|
@ -48,7 +49,7 @@ const Item = React.memo(
|
|
|
|
|
<Table.Cell>{username || '-'}</Table.Cell>
|
|
|
|
|
<Table.Cell>{email}</Table.Cell>
|
|
|
|
|
<Table.Cell>
|
|
|
|
|
<Radio toggle checked={isAdmin} disabled={isLockedAdmin} onChange={handleIsAdminChange} />
|
|
|
|
|
<Radio toggle checked={isAdmin} disabled={isRoleLocked} onChange={handleIsAdminChange} />
|
|
|
|
|
</Table.Cell>
|
|
|
|
|
<Table.Cell textAlign="right">
|
|
|
|
|
<ActionsPopup
|
|
|
|
|
@ -60,7 +61,7 @@ const Item = React.memo(
|
|
|
|
|
phone,
|
|
|
|
|
isAdmin,
|
|
|
|
|
isLocked,
|
|
|
|
|
isLockedAdmin,
|
|
|
|
|
isDeletionLocked,
|
|
|
|
|
emailUpdateForm,
|
|
|
|
|
passwordUpdateForm,
|
|
|
|
|
usernameUpdateForm,
|
|
|
|
|
@ -93,7 +94,8 @@ Item.propTypes = {
|
|
|
|
|
phone: PropTypes.string,
|
|
|
|
|
isAdmin: PropTypes.bool.isRequired,
|
|
|
|
|
isLocked: PropTypes.bool.isRequired,
|
|
|
|
|
isLockedAdmin: PropTypes.bool.isRequired,
|
|
|
|
|
isRoleLocked: PropTypes.bool.isRequired,
|
|
|
|
|
isDeletionLocked: PropTypes.bool.isRequired,
|
|
|
|
|
/* eslint-disable react/forbid-prop-types */
|
|
|
|
|
emailUpdateForm: PropTypes.object.isRequired,
|
|
|
|
|
passwordUpdateForm: PropTypes.object.isRequired,
|
|
|
|
|
|