File tree Expand file tree Collapse file tree 2 files changed +1
-7
lines changed
apps/react-kit-demo/src/services Expand file tree Collapse file tree 2 files changed +1
-7
lines changed Original file line number Diff line number Diff line change 1- import { FetchClient } from '@react-kit/*' ;
21import { BASE_API_URL , BOOK_API_URL } from '../constants/ApiConstants' ;
32import { Book } from '../types/Book' ;
43
@@ -16,6 +15,6 @@ export class BookService {
1615 * @since 1.0.0
1716 */
1817 static async getAllBooks ( ) : Promise < Book [ ] > {
19- return await FetchClient < Book [ ] > ( `${ BASE_API_URL + BOOK_API_URL } /books` ) ;
18+ return await fetch ( `${ BASE_API_URL + BOOK_API_URL } /books` ) . then ( ( res ) => res . json ( ) ) ;
2019 }
2120}
Original file line number Diff line number Diff line change @@ -23,11 +23,6 @@ export { ReactIf } from './lib/components/ReactIf';
2323export { TablePaginationActions } from './lib/components/table/TablePaginationActions' ;
2424export { a11yProps , TabPanel } from './lib/components/tabs/TabPanel' ;
2525
26- // Export fetch client
27- export { FetchClient as fetchClient , FetchClient , FetchClient as httpClient } from './lib/config/fetch/FetchClient' ;
28- export * from './lib/config/fetch/FetchClientTypes' ;
29- export { FetchInterceptor } from './lib/config/fetch/FetchInterceptor' ;
30-
3126// Export all utilities
3227export * from './lib/utils/BooleanUtils' ;
3328export * from './lib/utils/CssUtils' ;
You can’t perform that action at this time.
0 commit comments