Skip to content

Commit 1119da4

Browse files
committed
Coding standards
1 parent 8ce9909 commit 1119da4

File tree

7 files changed

+27
-15
lines changed

7 files changed

+27
-15
lines changed

src/components/feed-sources/feed-source-form.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function FeedSourceForm({
7171
name="feedType"
7272
value={feedSource.feedType}
7373
onChange={handleInput}
74-
disabled={(mode === "PUT")}
74+
disabled={mode === "PUT"}
7575
options={feedSourceTypeOptions}
7676
/>
7777

@@ -117,7 +117,7 @@ FeedSourceForm.propTypes = {
117117
loadingMessage: PropTypes.string,
118118
dynamicFormElement: PropTypes.oneOfType([
119119
PropTypes.element,
120-
PropTypes.arrayOf(PropTypes.element)
120+
PropTypes.arrayOf(PropTypes.element),
121121
]),
122122
feedSourceTypeOptions: PropTypes.arrayOf(
123123
PropTypes.shape({

src/components/feed-sources/feed-source-manager.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ function FeedSourceManager({
9595
setFormStateObject({ ...initialState });
9696
}, [initialState]);
9797

98-
9998
useEffect(() => {
10099
if (formStateObject && formStateObject.feedType) {
101100
let newSecrets = {};

src/components/feed-sources/feed-source-type-templates/CalendarFeedType.template.jsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import { React } from "react";
22
import PropTypes from "prop-types";
33
import FormInput from "../../util/forms/form-input";
44

5-
const CalendarFeedTypeTemplate = ({ handleInput, formStateObject, t, mode }) => {
5+
const CalendarFeedTypeTemplate = ({
6+
handleInput,
7+
formStateObject,
8+
t,
9+
mode,
10+
}) => {
611
return (
712
<>
813
<FormInput
@@ -21,7 +26,6 @@ const CalendarFeedTypeTemplate = ({ handleInput, formStateObject, t, mode }) =>
2126
);
2227
};
2328

24-
2529
CalendarFeedTypeTemplate.propTypes = {
2630
handleInput: PropTypes.func,
2731
formStateObject: PropTypes.shape({

src/components/feed-sources/feed-source-type-templates/EventDatabaseApiFeedType.template.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import { React } from "react";
22
import PropTypes from "prop-types";
33
import FormInput from "../../util/forms/form-input";
44

5-
const EventDatabaseApiTemplate = ({ handleInput, formStateObject, t, mode }) => {
5+
const EventDatabaseApiTemplate = ({
6+
handleInput,
7+
formStateObject,
8+
t,
9+
mode,
10+
}) => {
611
return (
712
<>
813
<FormInput

src/components/feed-sources/feed-source-type-templates/NotifiedFeedType.template.jsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import { React } from "react";
22
import PropTypes from "prop-types";
33
import FormInput from "../../util/forms/form-input";
44

5-
const NotifiedFeedTypeTemplate = ({ handleInput, formStateObject, t, mode }) => {
5+
const NotifiedFeedTypeTemplate = ({
6+
handleInput,
7+
formStateObject,
8+
t,
9+
mode,
10+
}) => {
611
return (
712
<>
813
<FormInput

src/components/feed-sources/feed-sources-columns.jsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ import UserContext from "../../context/user-context.jsx";
1616
* @returns {object} Columns - An array of objects representing the columns for
1717
* feed sources data.
1818
*/
19-
function getFeedSourcesColumns({
20-
apiCall,
21-
infoModalRedirect,
22-
infoModalTitle,
23-
}) {
19+
function getFeedSourcesColumns({ apiCall, infoModalRedirect, infoModalTitle }) {
2420
const context = useContext(UserContext);
2521
const { t } = useTranslation("common", { keyPrefix: "feed-sources-list" });
2622

@@ -43,7 +39,7 @@ function getFeedSourcesColumns({
4339
);
4440
},
4541
// eslint-disable-next-line react/prop-types
46-
content: ({ id } ) => (
42+
content: ({ id }) => (
4743
<ListButton
4844
apiCall={apiCall}
4945
redirectTo={infoModalRedirect}

src/components/feed-sources/feed-sources-list.jsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
import ListContext from "../../context/list-context.jsx";
1010
import ContentBody from "../util/content-body/content-body.jsx";
1111
import List from "../util/list/list.jsx";
12-
import { FeedSourceColumns } from "../feed-sources/feed-sources-columns";
12+
import { FeedSourceColumns } from "./feed-sources-columns";
1313
import {
1414
displayError,
1515
displaySuccess,
@@ -119,7 +119,10 @@ function FeedSourcesList() {
119119
// Error with retrieving list of feed sources
120120
useEffect(() => {
121121
if (feedSourcesGetError) {
122-
displayError(t("error-messages.feed-sources-load-error"), feedSourcesGetError);
122+
displayError(
123+
t("error-messages.feed-sources-load-error"),
124+
feedSourcesGetError
125+
);
123126
}
124127
}, [feedSourcesGetError]);
125128

0 commit comments

Comments
 (0)