Skip to content

Commit

Permalink
fixed due to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
YulNaumenko committed Aug 4, 2021
1 parent 832fae0 commit ec3ec5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const RuleMutedSwitch: React.FunctionComponent<ComponentOpts> = ({
<EuiLoadingSpinner size="m" />
) : (
<EuiSwitch
name="enable"
name="mute"
disabled={disabled}
compressed={true}
checked={isMuted}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const RuleEnabledSwitch: React.FunctionComponent<ComponentOpts> = ({
}, [item.enabled]);
const [isUpdating, setIsUpdating] = useState<boolean>(false);

const res = isUpdating ? (
return isUpdating ? (
<EuiLoadingSpinner data-test-subj="enableSpinner" size="m" />
) : (
<EuiSwitch
Expand All @@ -53,5 +53,4 @@ export const RuleEnabledSwitch: React.FunctionComponent<ComponentOpts> = ({
label=""
/>
);
return res;
};

0 comments on commit ec3ec5d

Please sign in to comment.