Skip to content

Commit a8f3615

Browse files
author
Sine Jespersen
committed
5290: lint
1 parent 3d01c66 commit a8f3615

File tree

89 files changed

+981
-895
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+981
-895
lines changed

assets/admin/app.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function App() {
9292
useEffect(() => {
9393
AdminConfigLoader.loadConfig().then((loadedConfig) => {
9494
setConfig(loadedConfig);
95-
})
95+
});
9696
}, []);
9797

9898
const handleReauthenticate = () => {
@@ -122,7 +122,7 @@ function App() {
122122
// If there is a selected tenant, fetch from local storage and use
123123
if (localStorage.getItem(localStorageKeys.SELECTED_TENANT)) {
124124
setSelectedTenant(
125-
JSON.parse(localStorage.getItem(localStorageKeys.SELECTED_TENANT))
125+
JSON.parse(localStorage.getItem(localStorageKeys.SELECTED_TENANT)),
126126
);
127127
}
128128

assets/admin/components/activation-code/activation-code-columns.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function getActivationCodeColumns() {
5050
const ActivationCodeColumns = ColumnHoc(getActivationCodeColumns, true, true);
5151
const SelectActivationCodeColumns = SelectColumnHoc(
5252
getActivationCodeColumns,
53-
true
53+
true,
5454
);
5555

5656
export { SelectActivationCodeColumns, ActivationCodeColumns };

assets/admin/components/activation-code/activation-code-list.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function ActivationCodeList() {
4040
const [isDeleting, setIsDeleting] = useState(false);
4141
const [listData, setListData] = useState();
4242
const [loadingMessage, setLoadingMessage] = useState(
43-
t("loading-messages.loading-activation-code")
43+
t("loading-messages.loading-activation-code"),
4444
);
4545

4646
// Remove from tenant call
@@ -104,7 +104,7 @@ function ActivationCodeList() {
104104
setIsDeleting(false);
105105
displayError(
106106
t("error-messages.activation-code-delete-error"),
107-
isDeleteError
107+
isDeleteError,
108108
);
109109
}
110110
}, [isDeleteError]);
@@ -120,7 +120,7 @@ function ActivationCodeList() {
120120
if (activationCodeGetError) {
121121
displayError(
122122
t("error-messages.activation-code-load-error"),
123-
activationCodeGetError
123+
activationCodeGetError,
124124
);
125125
}
126126
}, [activationCodeGetError]);
@@ -139,7 +139,7 @@ function ActivationCodeList() {
139139
userActivationCodeActivationCode: JSON.stringify({
140140
activationCode: item[0].code,
141141
}),
142-
})
142+
}),
143143
)
144144
.then((response) => {
145145
if (response.data) {

assets/admin/components/feed-sources/feed-source-manager.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ function FeedSourceManager({
3838

3939
// State
4040
const [headerText] = useState(
41-
saveMethod === "PUT" ? t("edit-feed-source") : t("create-new-feed-source")
41+
saveMethod === "PUT" ? t("edit-feed-source") : t("create-new-feed-source"),
4242
);
4343

4444
const [loadingMessage, setLoadingMessage] = useState(
45-
t("loading-messages.loading-feed-source")
45+
t("loading-messages.loading-feed-source"),
4646
);
4747

4848
const [submitting, setSubmitting] = useState(false);
@@ -171,7 +171,7 @@ function FeedSourceManager({
171171
if (loadingError) {
172172
displayError(
173173
t("error-messages.load-feed-source-error", { id }),
174-
loadingError
174+
loadingError,
175175
);
176176
}
177177
}, [loadingError]);

assets/admin/components/feed-sources/feed-sources-columns.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function getFeedSourcesColumns({ apiCall, infoModalRedirect, infoModalTitle }) {
3333
tenants?.length === 0 ||
3434
!tenants.find(
3535
(tenant) =>
36-
tenant.tenantKey === context.selectedTenant.get.tenantKey
36+
tenant.tenantKey === context.selectedTenant.get.tenantKey,
3737
)
3838
);
3939
},

assets/admin/components/feed-sources/feed-sources-list.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function FeedSourcesList() {
3131
const [listData, setListData] = useState();
3232
const [isDeleting, setIsDeleting] = useState(false);
3333
const [loadingMessage, setLoadingMessage] = useState(
34-
t("loading-messages.loading-feed-sources")
34+
t("loading-messages.loading-feed-sources"),
3535
);
3636

3737
// Delete call
@@ -123,7 +123,7 @@ function FeedSourcesList() {
123123
if (feedSourcesGetError) {
124124
displayError(
125125
t("error-messages.feed-sources-load-error"),
126-
feedSourcesGetError
126+
feedSourcesGetError,
127127
);
128128
}
129129
}, [feedSourcesGetError]);

assets/admin/components/feed-sources/templates/calendar-api-feed-type.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const CalendarApiFeedType = ({
1616

1717
useEffect(() => {
1818
if (feedSourceId && feedSourceId !== "") {
19-
const endpoint = "/" + feedSourceId + "/config/locations";
20-
setOptionsEndpoint(endpoint);
19+
const endpoint = "/" + feedSourceId + "/config/locations";
20+
setOptionsEndpoint(endpoint);
2121
}
2222
}, [feedSourceId]);
2323

assets/admin/components/feed-sources/templates/colibo-feed-type.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ColiboFeedType = ({
1818

1919
useEffect(() => {
2020
if (feedSourceId && feedSourceId !== "") {
21-
const endpoint = '/' + feedSourceId + "/config/recipients";
21+
const endpoint = "/" + feedSourceId + "/config/recipients";
2222
setOptionsEndpoint(endpoint);
2323
}
2424
}, [feedSourceId]);

assets/admin/components/groups/group-edit.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function GroupEdit() {
2323
const [formStateObject, setFormStateObject] = useState();
2424
const [savingGroup, setSavingGroup] = useState(false);
2525
const [loadingMessage, setLoadingMessage] = useState(
26-
t("loading-messages.loading-group")
26+
t("loading-messages.loading-group"),
2727
);
2828
const { id } = useParams();
2929
const [PutV2ScreenGroup, { error: saveError, isSuccess: isSaveSuccess }] =
@@ -68,7 +68,7 @@ function GroupEdit() {
6868
? loadError.error
6969
: loadError.data["hydra:description"],
7070
id,
71-
})
71+
}),
7272
);
7373
}
7474
}, [loadError]);

assets/admin/components/groups/groups-list.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function GroupsList() {
3737
const [isDeleting, setIsDeleting] = useState(false);
3838
const [listData, setListData] = useState();
3939
const [loadingMessage, setLoadingMessage] = useState(
40-
t("loading-messages.loading-groups")
40+
t("loading-messages.loading-groups"),
4141
);
4242

4343
// Delete call

0 commit comments

Comments
 (0)