e140702784
* start to create asset list * begin refactoring overlay component to remove duplicate code * refactoring of overlays, asset list styles * changes to add size to asset list * fixes to asset list * handle case in which a user hasn't uploaded any assets * fix bug in which asset list only grabbed first asset * remove console.log * update overlay exit styling to use icon mixin
12 lines
243 B
JavaScript
12 lines
243 B
JavaScript
import * as ActionTypes from '../../../constants';
|
|
|
|
const assets = (state = [], action) => {
|
|
switch (action.type) {
|
|
case ActionTypes.SET_ASSETS:
|
|
return action.assets;
|
|
default:
|
|
return state;
|
|
}
|
|
};
|
|
|
|
export default assets;
|