diff --git a/src/actions/auth.js b/src/actions/auth.js index a3db7855e45cf65d5935809ce1d3d504142a5b13..6e8a85bd37bed86ce3d6f8f371c37413a1d221c6 100644 --- a/src/actions/auth.js +++ b/src/actions/auth.js @@ -1,5 +1,5 @@ import axios from './session'; -import { GET_USERDATA, PROFILE_CHANGE, GROUP_CHANGE, GET_NEWS } from './types'; +import { GET_USERDATA, PROFILE_CHANGE, GROUP_CHANGE } from './types'; export const getUserData = () => ( @@ -28,20 +28,6 @@ export const getUserData = () => ( } ); -export const getNews = () => ( - async (dispatch) => { - try { - const response = await axios.get('/api/v1/news'); - dispatch({ - type: GET_NEWS, - payload: response.data, - }); - } catch (e) { - console.log(e); - } - } -); - export const textChange = ({ target: { name, value } }) => ( (dispatch) => { dispatch({ type: PROFILE_CHANGE, payload: value, target: name });