Skip to content

Commit 9d04d50

Browse files
committed
4565: Added enhancedApi
1 parent ae86844 commit 9d04d50

Some content is hidden

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

43 files changed

+165
-64
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
33
import { useNavigate } from "react-router-dom";
44
import Form from "react-bootstrap/Form";
55
import { Button } from "react-bootstrap";
6-
import { usePostV2UserActivationCodesActivateMutation } from "../../../shared/redux/generated-api.ts";
6+
import { usePostV2UserActivationCodesActivateMutation } from "../../../shared/redux/enhanced-api.ts";
77
import {
88
displaySuccess,
99
displayError,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { React, useState, useEffect } from "react";
22
import { useTranslation } from "react-i18next";
33
import { useNavigate } from "react-router-dom";
4-
import { usePostV2UserActivationCodesMutation } from "../../../shared/redux/generated-api.ts";
4+
import { usePostV2UserActivationCodesMutation } from "../../../shared/redux/enhanced-api.ts";
55
import ActivationCodeForm from "./activation-code-form";
66
import {
77
displaySuccess,

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ import {
1515
displayError,
1616
} from "../util/list/toast-component/display-toast";
1717
import {
18-
api,
18+
enhancedApi,
1919
useDeleteV2UserActivationCodesByIdMutation,
2020
useGetV2UserActivationCodesQuery,
21-
} from "../../../shared/redux/generated-api.ts";
21+
} from "../../../shared/redux/enhanced-api.ts";
2222

2323
/**
2424
* The Activation Code list component.
@@ -135,7 +135,7 @@ function ActivationCodeList() {
135135
}
136136

137137
dispatch(
138-
api.endpoints.postV2UserActivationCodesRefresh.initiate({
138+
enhancedApi.endpoints.postV2UserActivationCodesRefresh.initiate({
139139
userActivationCodeActivationCode: JSON.stringify({
140140
activationCode: item[0].code,
141141
}),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { React } from "react";
22
import { useParams } from "react-router-dom";
3-
import { useGetV2FeedSourcesByIdQuery } from "../../../shared/redux/generated-api.ts";
3+
import { useGetV2FeedSourcesByIdQuery } from "../../../shared/redux/enhanced-api.ts";
44
import FeedSourceManager from "./feed-source-manager";
55

66
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import FeedSourceForm from "./feed-source-form";
66
import {
77
usePostV2FeedSourcesMutation,
88
usePutV2FeedSourcesByIdMutation,
9-
} from "../../../shared/redux/generated-api.ts";
9+
} from "../../../shared/redux/enhanced-api.ts";
1010
import {
1111
displayError,
1212
displaySuccess,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
useGetV2FeedSourcesQuery,
66
useDeleteV2FeedSourcesByIdMutation,
77
useGetV2FeedSourcesByIdSlidesQuery,
8-
} from "../../../shared/redux/generated-api.ts";
8+
} from "../../../shared/redux/enhanced-api.ts";
99
import ListContext from "../../context/list-context";
1010
import ContentBody from "../util/content-body/content-body";
1111
import List from "../util/list/list";

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { React, useState, useEffect } from "react";
22
import { useTranslation } from "react-i18next";
33
import { useNavigate } from "react-router-dom";
4-
import { usePostV2ScreenGroupsMutation } from "../../../shared/redux/generated-api.ts";
4+
import { usePostV2ScreenGroupsMutation } from "../../../shared/redux/enhanced-api.ts";
55
import GroupForm from "./group-form";
66
import {
77
displaySuccess,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
44
import {
55
useGetV2ScreenGroupsByIdQuery,
66
usePutV2ScreenGroupsByIdMutation,
7-
} from "../../../shared/redux/generated-api.ts";
7+
} from "../../../shared/redux/enhanced-api.ts";
88
import {
99
displaySuccess,
1010
displayError,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
useGetV2ScreenGroupsQuery,
1717
useGetV2ScreenGroupsByIdScreensQuery,
1818
useDeleteV2ScreenGroupsByIdMutation,
19-
} from "../../../shared/redux/generated-api.ts";
19+
} from "../../../shared/redux/enhanced-api.ts";
2020

2121
/**
2222
* The groups list component.

assets/admin/components/media/media-create.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { React, useState, useEffect } from "react";
22
import { useTranslation } from "react-i18next";
3-
import { usePostMediaCollectionMutation } from "../../../shared/redux/generated-api.ts";
3+
import { usePostMediaCollectionMutation } from "../../../shared/redux/enhanced-api.ts";
44
import MediaForm from "./media-form";
55
import {
66
displayError,

0 commit comments

Comments
 (0)