diff --git a/apps/react-kit-demo/src/services/BookService.ts b/apps/react-kit-demo/src/services/BookService.ts index c344746..221772e 100644 --- a/apps/react-kit-demo/src/services/BookService.ts +++ b/apps/react-kit-demo/src/services/BookService.ts @@ -1,4 +1,3 @@ -import { FetchClient } from '@react-kit/*'; import { BASE_API_URL, BOOK_API_URL } from '../constants/ApiConstants'; import { Book } from '../types/Book'; @@ -16,6 +15,6 @@ export class BookService { * @since 1.0.0 */ static async getAllBooks(): Promise { - return await FetchClient(`${BASE_API_URL + BOOK_API_URL}/books`); + return await fetch(`${BASE_API_URL + BOOK_API_URL}/books`).then((res) => res.json()); } } diff --git a/react-kit/src/index.ts b/react-kit/src/index.ts index 51fffff..84f8ed1 100644 --- a/react-kit/src/index.ts +++ b/react-kit/src/index.ts @@ -23,11 +23,6 @@ export { ReactIf } from './lib/components/ReactIf'; export { TablePaginationActions } from './lib/components/table/TablePaginationActions'; export { a11yProps, TabPanel } from './lib/components/tabs/TabPanel'; -// Export fetch client -export { FetchClient as fetchClient, FetchClient, FetchClient as httpClient } from './lib/config/fetch/FetchClient'; -export * from './lib/config/fetch/FetchClientTypes'; -export { FetchInterceptor } from './lib/config/fetch/FetchInterceptor'; - // Export all utilities export * from './lib/utils/BooleanUtils'; export * from './lib/utils/CssUtils';