Move and rename axios
This commit is contained in:
parent
66ccb94dc7
commit
160ff561df
|
|
@ -1,6 +1,6 @@
|
|||
import axios from 'axios';
|
||||
import {CurrentUser} from '../CurrentUser';
|
||||
import {SnackReporter} from '../snack/SnackManager';
|
||||
import {CurrentUser} from './CurrentUser';
|
||||
import {SnackReporter} from './snack/SnackManager';
|
||||
|
||||
export const initAxios = (currentUser: CurrentUser, snack: SnackReporter) => {
|
||||
axios.interceptors.request.use((config) => {
|
||||
|
|
@ -2,7 +2,7 @@ import * as React from 'react';
|
|||
import * as ReactDOM from 'react-dom';
|
||||
import 'typeface-roboto';
|
||||
import 'typeface-roboto-mono';
|
||||
import {initAxios} from './actions/axios';
|
||||
import {initAxios} from './apiAuth';
|
||||
import * as config from './config';
|
||||
import Layout from './layout/Layout';
|
||||
import registerServiceWorker from './registerServiceWorker';
|
||||
|
|
|
|||
Loading…
Reference in New Issue