refinments
This commit is contained in:
parent
8fdb46f085
commit
f7fb01e3cb
@ -2,9 +2,9 @@ export const ADD_MEDIA = 'ADD_MEDIA';
|
|||||||
export const REMOVE_MEDIA = 'REMOVE_MEDIA';
|
export const REMOVE_MEDIA = 'REMOVE_MEDIA';
|
||||||
|
|
||||||
export function addMedia(mediaProxy) {
|
export function addMedia(mediaProxy) {
|
||||||
return {type: ADD_MEDIA, payload: mediaProxy};
|
return { type: ADD_MEDIA, payload: mediaProxy };
|
||||||
}
|
}
|
||||||
|
|
||||||
export function removeMedia(uri) {
|
export function removeMedia(uri) {
|
||||||
return {type: REMOVE_MEDIA, payload: uri};
|
return { type: REMOVE_MEDIA, payload: uri };
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import React, { PropTypes } from 'react';
|
import React, { PropTypes } from 'react';
|
||||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||||
import { Link } from 'react-router';
|
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { loadEntries } from '../actions/entries';
|
import { loadEntries } from '../actions/entries';
|
||||||
import { selectEntries } from '../reducers';
|
import { selectEntries } from '../reducers';
|
||||||
|
@ -10,13 +10,13 @@ import './index.css';
|
|||||||
|
|
||||||
const store = configureStore();
|
const store = configureStore();
|
||||||
|
|
||||||
|
// Create an enhanced history that syncs navigation events with the store
|
||||||
|
syncHistory(store);
|
||||||
|
|
||||||
const el = document.createElement('div');
|
const el = document.createElement('div');
|
||||||
el.id = 'root';
|
el.id = 'root';
|
||||||
document.body.appendChild(el);
|
document.body.appendChild(el);
|
||||||
|
|
||||||
// Create an enhanced history that syncs navigation events with the store
|
|
||||||
syncHistory(store);
|
|
||||||
|
|
||||||
render((
|
render((
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<Router history={history}>
|
<Router history={history}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user