Skip to content

Commit f25cbf5

Browse files
chore: Linting error fix
1 parent 4645a4d commit f25cbf5

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

src/discussions/common/AutoSpamAlertBanner.jsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
11
import React from 'react';
2-
import PropTypes from 'prop-types';
32

4-
import { ActionRow, Alert, Icon, ModalDialog, useToggle } from '@openedx/paragon';
5-
import { Report, HelpOutline } from '@openedx/paragon/icons';
63
import { useIntl } from '@edx/frontend-platform/i18n';
4+
import {
5+
ActionRow,
6+
Alert,
7+
Icon,
8+
ModalDialog,
9+
useToggle,
10+
} from '@openedx/paragon';
11+
import {
12+
HelpOutline,
13+
Report,
14+
} from '@openedx/paragon/icons';
15+
import PropTypes from 'prop-types';
716

817
import messages from '../messages';
918

@@ -41,7 +50,7 @@ const AutoSpamAlertBanner = ({ autoSpamFlagged }) => {
4150
</ModalDialog.Title>
4251
</ModalDialog.Header>
4352
<ModalDialog.Body>
44-
<p>
53+
<p>
4554
{intl.formatMessage(messages.autoSpamModalBodyParagraph1)}
4655
</p>
4756
<p>

src/discussions/messages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ const messages = defineMessages({
243243
defaultMessage: 'Faculty and staff will never invite you to join external groups or ask for personal or financial information in the discussions. Stay safe, and if you see suspicious activity, please report it.',
244244
description: 'Warning message about spam and impersonation in discussion forums',
245245
},
246-
autoSpamFlaggedMessage: {
246+
autoSpamFlaggedMessage: {
247247
id: 'discussions.autoSpamFlaggedMessage',
248248
defaultMessage: 'Content automatically reported as possible spam pending staff review.',
249249
description: 'Message shown when a post is automatically flagged as potential spam',

src/discussions/post-comments/comments/comment/Comment.jsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import React, {
2-
useCallback, useContext, useEffect, useMemo, useState,
2+
useCallback,
3+
useContext,
4+
useEffect,
5+
useMemo,
6+
useState,
37
} from 'react';
48
import PropTypes from 'prop-types';
59

6-
import { Button, useToggle } from '@openedx/paragon';
10+
import {
11+
Button,
12+
useToggle,
13+
} from '@openedx/paragon';
714
import classNames from 'classnames';
815
import { useDispatch, useSelector } from 'react-redux';
916

src/discussions/post-comments/comments/comment/Reply.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React, { useCallback, useMemo, useState } from 'react';
2-
import PropTypes from 'prop-types';
32

4-
import { Avatar, useToggle } from '@openedx/paragon';
5-
import { useDispatch, useSelector } from 'react-redux';
63
import * as timeago from 'timeago.js';
4+
import { useDispatch, useSelector } from 'react-redux';
5+
import PropTypes from 'prop-types';
76

87
import { useIntl } from '@edx/frontend-platform/i18n';
8+
import { Avatar, useToggle } from '@openedx/paragon';
99

1010
import HTMLLoader from '../../../../components/HTMLLoader';
1111
import { AvatarOutlineAndLabelColors, ContentActions } from '../../../../data/constants';

0 commit comments

Comments
 (0)