Skip to content

Commit

Permalink
fix: previous linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahwaheed committed Jun 21, 2022
1 parent ab91b48 commit 69ab6df
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ class EmailSettingsModal extends Component {
render() {
const { error, hasEmailsEnabled, isSubmitting } = this.state;
const { title, open, courseRunId } = this.props;
const errorIcon = () => <FontAwesomeIcon className="mr-3" icon={faExclamationTriangle} />;

return (
<Modal
Expand All @@ -123,15 +124,13 @@ class EmailSettingsModal extends Component {
<Alert
variant="danger"
dismissible={false}
icon={() => <FontAwesomeIcon className="mr-3" icon={faExclamationTriangle}/>}
icon={errorIcon}
show
>
{(
<div className="d-flex">
An error occurred while saving your email settings. Please
try again.
</div>
)}
<div className="d-flex">
An error occurred while saving your email settings. Please
try again.
</div>
</Alert>
)}
<div className="form-check">
Expand Down

0 comments on commit 69ab6df

Please sign in to comment.