mirror of
https://github.com/wassname/talk.git
synced 2026-08-12 12:30:39 +08:00
file not being used anywhere
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import * as actions from '../constants/assets';
|
||||
import coralApi from '../helpers/response';
|
||||
import {addItem} from './items';
|
||||
|
||||
export const fetchMulitpleAssets = ids => {
|
||||
return dispatch => {
|
||||
dispatch({type: actions.MULTIPLE_ASSETS_REQUEST});
|
||||
|
||||
coralApi(`/assets/multi?ids=${encodeURIComponent(ids.join(','))}`)
|
||||
.then(assets => {
|
||||
assets.forEach(asset => dispatch(addItem(asset, 'assets')));
|
||||
dispatch({type: actions.MULTIPLE_ASSETS_SUCCESS, assets: assets.map(asset => asset.id)});
|
||||
})
|
||||
.catch(error => dispatch({type: actions.MULTIPLE_ASSSETS_FAILURE, error}));
|
||||
};
|
||||
};
|
||||
@@ -2,7 +2,6 @@ import React, {Component} from 'react';
|
||||
import {connect} from 'react-redux';
|
||||
|
||||
import {saveBio, fetchCommentsByUserId} from 'coral-framework/actions/user';
|
||||
import {fetchMulitpleAssets} from 'coral-framework/actions/assets';
|
||||
|
||||
import BioContainer from './BioContainer';
|
||||
import NotLoggedIn from '../components/NotLoggedIn';
|
||||
@@ -66,8 +65,7 @@ const mapStateToProps = state => ({
|
||||
|
||||
const mapDispatchToProps = dispatch => ({
|
||||
saveBio: (user_id, formData) => dispatch(saveBio(user_id, formData)),
|
||||
fetchCommentsByUserId: userId => dispatch(fetchCommentsByUserId(userId)),
|
||||
fetchMulitpleAssets: assetIds => dispatch(fetchMulitpleAssets(assetIds))
|
||||
fetchCommentsByUserId: userId => dispatch(fetchCommentsByUserId(userId))
|
||||
});
|
||||
|
||||
export default connect(
|
||||
|
||||
Reference in New Issue
Block a user