Skip to content

Commit

Permalink
fix: linting and JS errors due to paragon modal deprecation pr (#1170)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Feb 12, 2024
1 parent 11bfeaf commit 559308a
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/CodeAssignmentModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { reduxForm, SubmissionError } from 'redux-form';
import {
Button, Icon, ModalDialog, ActionRow, Form,
Button, ModalDialog, ActionRow, Form, Spinner,
} from '@edx/paragon';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';

Expand Down Expand Up @@ -423,7 +423,7 @@ export class BaseCodeAssignmentModal extends React.Component {
data-testid={SUBMIT_BUTTON_TEST_ID}
>
<>
{mode === MODAL_TYPES.assign && submitting && <Spinner animation="border" className="mr-2" variant="light" size="sm" />}
{mode === MODAL_TYPES.assign && submitting && <Spinner animation="border" className="mr-2" variant="light" size="sm" />}
{`Assign ${isBulkAssign ? 'Codes' : 'Code'}`}
</>
</Button>,
Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeReminderModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { reduxForm, SubmissionError } from 'redux-form';
import {
Button, Icon, ModalDialog, ActionRow,
Button, ModalDialog, ActionRow, Spinner,
} from '@edx/paragon';
import { injectIntl, intlShape } from '@edx/frontend-platform/i18n';

Expand Down
2 changes: 1 addition & 1 deletion src/components/CodeRevokeModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Field, reduxForm, SubmissionError } from 'redux-form';
import {
Button, Icon, ModalDialog, ActionRow,
Button, ModalDialog, ActionRow, Spinner,
} from '@edx/paragon';
import { Info } from '@edx/paragon/icons';

Expand Down
4 changes: 2 additions & 2 deletions src/components/InviteLearnersModal/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Field, reduxForm, SubmissionError } from 'redux-form';
import {
Button, Icon, Alert, ModalDialog, ActionRow,
Button, Alert, ModalDialog, ActionRow, Spinner,
} from '@edx/paragon';
import { Cancel as ErrorIcon } from '@edx/paragon/icons';

Expand Down Expand Up @@ -204,7 +204,7 @@ class InviteLearnersModal extends React.Component {
onClick={handleSubmit(this.handleModalSubmit)}
>
<>
{submitting && <Spinner animation="border" className="mr-2" variant="primary" size="sm" />}
{submitting && <Spinner animation="border" className="mr-2" variant="primary" size="sm" />}
Invite learners
</>
</Button>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { IntlProvider } from '@edx/frontend-platform/i18n';
import { getAuthenticatedUser } from '@edx/frontend-platform/auth';

import LmsApiService from '../../../../../data/services/LmsApiService';
import { features } from '../../../../../config';
import SyncHistory from '../SyncHistory';

const enterpriseCustomerUuid = 'test-enterprise-id';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import thunk from 'redux-thunk';
import { Provider } from 'react-redux';
import { IntlProvider } from '@edx/frontend-platform/i18n';
import { getAuthenticatedUser } from '@edx/frontend-platform/auth';
import { features } from '../../../../../config';

import { renderWithRouter } from '../../../../test/testUtils';
import SettingsLMSTab from '../..';
Expand Down

0 comments on commit 559308a

Please sign in to comment.