Fixed code smell 'Unexpected empty arrow function' reported by SonarQube.

This commit is contained in:
Akshay Joshi
2022-01-12 17:32:20 +05:30
parent d2457f2a1d
commit c98fb887cc
94 changed files with 1023 additions and 1023 deletions

View File

@@ -439,7 +439,7 @@ export function InputSwitch({cid, helpid, value, onChange, readonly, controlProp
<Switch color="primary"
checked={Boolean(value)}
onChange={
readonly ? ()=>{} : onChange
readonly ? ()=>{/*This is intentional (SonarQube)*/} : onChange
}
id={cid}
inputProps={{
@@ -486,7 +486,7 @@ export function InputCheckbox({cid, helpid, value, onChange, controlProps, reado
<Checkbox
id={cid}
checked={Boolean(value)}
onChange={readonly ? ()=>{} : onChange}
onChange={readonly ? ()=>{/*This is intentional (SonarQube)*/} : onChange}
color="primary"
inputProps={{'aria-describedby': helpid}}
{...props}/>
@@ -1078,7 +1078,7 @@ FormFooterMessage.propTypes = {
message: PropTypes.string,
};
export function NotifierMessage({type=MESSAGE_TYPE.SUCCESS, message, closable=true, onClose=()=>{}}) {
export function NotifierMessage({type=MESSAGE_TYPE.SUCCESS, message, closable=true, onClose=()=>{/*This is intentional (SonarQube)*/}}) {
const classes = useStylesFormFooter();
return (