setAutoMatchScope(event.target.value)}
>
{
- scopeOptions.map(option => (
-
+ scopeOptions.map(option => {
+ const control = (
}
+ control={}
label={}
sx={{marginRight: 0}}
/>
-
- {option.helperText}
-
- {
- autoMatchScope === option.value && option.value === 'allIncludingApproved' &&
- setConfirmAllIncludingApproved(event.target.checked)}
- />
- }
- label={t('map_project.auto_match_all_including_approved_confirm', {
- approvedCount: reviewedRowsCount.toLocaleString()
- })}
- />
- }
-
- ))
+ )
+ return option.disabled && option.disabledTooltip ?
+ {control} :
+ control
+ })
}