diff --git a/app/javascript/flavours/glitch/actions/importer/normalizer.js b/app/javascript/flavours/glitch/actions/importer/normalizer.js
index 97f94d9e46..f30e193c4f 100644
--- a/app/javascript/flavours/glitch/actions/importer/normalizer.js
+++ b/app/javascript/flavours/glitch/actions/importer/normalizer.js
@@ -96,7 +96,7 @@ export function normalizeStatus(status, normalOldStatus, settings) {
normalStatus.media_attachments.forEach(item => {
const oldItem = list.find(i => i.get('id') === item.id);
if (oldItem && oldItem.get('description') === item.description) {
- item.translation = oldItem.get('translation')
+ item.translation = oldItem.get('translation');
}
});
}
@@ -129,13 +129,13 @@ export function normalizePoll(poll, normalOldPoll) {
...option,
voted: poll.own_votes && poll.own_votes.includes(index),
titleHtml: emojify(escapeTextContentForBrowser(option.title), emojiMap),
- }
+ };
if (normalOldPoll && normalOldPoll.getIn(['options', index, 'title']) === option.title) {
normalOption.translation = normalOldPoll.getIn(['options', index, 'translation']);
}
- return normalOption
+ return normalOption;
});
return normalPoll;
diff --git a/app/javascript/flavours/glitch/components/column.jsx b/app/javascript/flavours/glitch/components/column.jsx
index 3c58130528..116d852168 100644
--- a/app/javascript/flavours/glitch/components/column.jsx
+++ b/app/javascript/flavours/glitch/components/column.jsx
@@ -30,7 +30,7 @@ export default class Column extends PureComponent {
if (scrollable.classList.contains('scrollable--flex')) {
scrollable = scrollable?.querySelector('.scrollable') || scrollable;
}
- }
+ }
if (!scrollable) {
return;
diff --git a/app/javascript/flavours/glitch/components/poll.jsx b/app/javascript/flavours/glitch/components/poll.jsx
index 623d343806..03dd6b576e 100644
--- a/app/javascript/flavours/glitch/components/poll.jsx
+++ b/app/javascript/flavours/glitch/components/poll.jsx
@@ -133,7 +133,7 @@ class Poll extends ImmutablePureComponent {
handleReveal = () => {
this.setState({ revealed: true });
- }
+ };
renderOption (option, optionIndex, showResults) {
const { poll, lang, disabled, intl } = this.props;
diff --git a/app/javascript/flavours/glitch/features/compose/components/search.jsx b/app/javascript/flavours/glitch/features/compose/components/search.jsx
index 3d79e43c5b..0b659f99ea 100644
--- a/app/javascript/flavours/glitch/features/compose/components/search.jsx
+++ b/app/javascript/flavours/glitch/features/compose/components/search.jsx
@@ -59,14 +59,14 @@ class Search extends PureComponent {
};
defaultOptions = [
- { label: <>has: >, action: e => { e.preventDefault(); this._insertText('has:') } },
- { label: <>is: >, action: e => { e.preventDefault(); this._insertText('is:') } },
- { label: <>language: >, action: e => { e.preventDefault(); this._insertText('language:') } },
- { label: <>from: >, action: e => { e.preventDefault(); this._insertText('from:') } },
- { label: <>before: >, action: e => { e.preventDefault(); this._insertText('before:') } },
- { label: <>during: >, action: e => { e.preventDefault(); this._insertText('during:') } },
- { label: <>after: >, action: e => { e.preventDefault(); this._insertText('after:') } },
- { label: <>in: >, action: e => { e.preventDefault(); this._insertText('in:') } }
+ { label: <>has: >, action: e => { e.preventDefault(); this._insertText('has:'); } },
+ { label: <>is: >, action: e => { e.preventDefault(); this._insertText('is:'); } },
+ { label: <>language: >, action: e => { e.preventDefault(); this._insertText('language:'); } },
+ { label: <>from: >, action: e => { e.preventDefault(); this._insertText('from:'); } },
+ { label: <>before: >, action: e => { e.preventDefault(); this._insertText('before:'); } },
+ { label: <>during: >, action: e => { e.preventDefault(); this._insertText('during:'); } },
+ { label: <>after: >, action: e => { e.preventDefault(); this._insertText('after:'); } },
+ { label: <>in: >, action: e => { e.preventDefault(); this._insertText('in:'); } }
];
setRef = c => {
@@ -92,7 +92,7 @@ class Search extends PureComponent {
if (value.length > 0 || submitted) {
onClear();
- this.setState({ options: [], selectedOption: -1 })
+ this.setState({ options: [], selectedOption: -1 });
}
};
diff --git a/app/javascript/flavours/glitch/features/explore/results.jsx b/app/javascript/flavours/glitch/features/explore/results.jsx
index 1e3fb1bb11..b7e9d22ee7 100644
--- a/app/javascript/flavours/glitch/features/explore/results.jsx
+++ b/app/javascript/flavours/glitch/features/explore/results.jsx
@@ -80,7 +80,7 @@ class Results extends PureComponent {
}
return null;
- };
+ }
handleSelectAll = () => {
const { submittedType, dispatch } = this.props;
@@ -116,7 +116,7 @@ class Results extends PureComponent {
}
this.setState({ type: 'hashtags' });
- }
+ };
handleSelectStatuses = () => {
const { submittedType, dispatch } = this.props;
@@ -128,7 +128,7 @@ class Results extends PureComponent {
}
this.setState({ type: 'statuses' });
- }
+ };
handleLoadMoreAccounts = () => this._loadMore('accounts');
handleLoadMoreStatuses = () => this._loadMore('statuses');
diff --git a/app/javascript/flavours/glitch/features/firehose/index.jsx b/app/javascript/flavours/glitch/features/firehose/index.jsx
index 71f5a1de68..3cdeda97c1 100644
--- a/app/javascript/flavours/glitch/features/firehose/index.jsx
+++ b/app/javascript/flavours/glitch/features/firehose/index.jsx
@@ -221,7 +221,7 @@ const Firehose = ({ feedType, multiColumn }) => {
);
-}
+};
Firehose.propTypes = {
multiColumn: PropTypes.bool,
diff --git a/app/javascript/flavours/glitch/features/interaction_modal/index.jsx b/app/javascript/flavours/glitch/features/interaction_modal/index.jsx
index 77c0122e22..1afa852cfb 100644
--- a/app/javascript/flavours/glitch/features/interaction_modal/index.jsx
+++ b/app/javascript/flavours/glitch/features/interaction_modal/index.jsx
@@ -27,9 +27,9 @@ const mapStateToProps = (state, { accountId }) => ({
const mapDispatchToProps = (dispatch) => ({
onSignupClick() {
dispatch(closeModal({
- modalType: undefined,
- ignoreFocus: false,
- }));
+ modalType: undefined,
+ ignoreFocus: false,
+ }));
dispatch(openModal({ modalType: 'CLOSED_REGISTRATIONS' }));
},
});
@@ -187,7 +187,7 @@ class LoginForm extends React.PureComponent {
setIFrameRef = (iframe) => {
this.iframeRef = iframe;
- }
+ };
handleFocus = () => {
this.setState({ expanded: true });
diff --git a/app/javascript/flavours/glitch/features/report/comment.jsx b/app/javascript/flavours/glitch/features/report/comment.jsx
index 6a3605215e..a7305e8f3e 100644
--- a/app/javascript/flavours/glitch/features/report/comment.jsx
+++ b/app/javascript/flavours/glitch/features/report/comment.jsx
@@ -104,7 +104,7 @@ const Comment = ({ comment, domain, statusIds, isRemote, isSubmitting, selectedD
>
);
-}
+};
Comment.propTypes = {
comment: PropTypes.string.isRequired,
diff --git a/app/javascript/flavours/glitch/features/ui/components/header.jsx b/app/javascript/flavours/glitch/features/ui/components/header.jsx
index 114d348d45..6132ce7710 100644
--- a/app/javascript/flavours/glitch/features/ui/components/header.jsx
+++ b/app/javascript/flavours/glitch/features/ui/components/header.jsx
@@ -77,8 +77,8 @@ class Header extends PureComponent {
if (sso_redirect) {
content = (
-
- )
+
+ );
} else {
let signupButton;
diff --git a/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx b/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx
index 94adbf8f83..78a7ac2297 100644
--- a/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx
+++ b/app/javascript/flavours/glitch/features/ui/components/modal_root.jsx
@@ -128,7 +128,7 @@ export default class ModalRoot extends PureComponent {
{(SpecificComponent) => {
const ref = typeof SpecificComponent !== 'function' ? this.setModalRef : undefined;
- return
+ return ;
}}
diff --git a/app/javascript/flavours/glitch/features/ui/components/sign_in_banner.jsx b/app/javascript/flavours/glitch/features/ui/components/sign_in_banner.jsx
index 82a7fcdb95..184a8d103f 100644
--- a/app/javascript/flavours/glitch/features/ui/components/sign_in_banner.jsx
+++ b/app/javascript/flavours/glitch/features/ui/components/sign_in_banner.jsx
@@ -24,7 +24,7 @@ const SignInBanner = () => {
- )
+ );
}
if (registrationsOpen) {