React pass data if true or false

Remove defaultProps and render RolePermissionRow like below.

<List>
    {PERMISSIONS_GROUPING.map(item => <RolePermissionRow name={item.name} withIcon={item.withIcon}>)}
</List>