Skip to content
Snippets Groups Projects
Commit c39b6f1e authored by Chif Gergő's avatar Chif Gergő
Browse files

Remove getNews from auth.js, it was copied in news.js when separated the actions.

parent e4f070dd
No related branches found
No related tags found
No related merge requests found
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 });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment