Removed axios from the project

This commit is contained in:
Alejandro Celaya
2022-11-15 11:45:28 +01:00
parent 34aa156d5f
commit 3df0bf79f8
4 changed files with 20 additions and 45 deletions

View File

@@ -1,4 +1,3 @@
import axios from 'axios';
import Bottle from 'bottlejs';
import { ScrollToTop } from '../ScrollToTop';
import { MainHeader } from '../MainHeader';
@@ -18,7 +17,6 @@ const provideServices = (bottle: Bottle, connect: ConnectDecorator) => {
// Services
bottle.constant('window', (global as any).window);
bottle.constant('console', global.console);
bottle.constant('axios', axios);
bottle.constant('fetch', (global as any).fetch.bind(global));
bottle.serviceFactory('jsonFetch', jsonFetch, 'fetch');