diff --git a/src/actions/media.js b/src/actions/media.js index 88f822ff..a45e6f64 100644 --- a/src/actions/media.js +++ b/src/actions/media.js @@ -2,9 +2,9 @@ export const ADD_MEDIA = 'ADD_MEDIA'; export const REMOVE_MEDIA = 'REMOVE_MEDIA'; export function addMedia(mediaProxy) { - return {type: ADD_MEDIA, payload: mediaProxy}; + return { type: ADD_MEDIA, payload: mediaProxy }; } export function removeMedia(uri) { - return {type: REMOVE_MEDIA, payload: uri}; + return { type: REMOVE_MEDIA, payload: uri }; } diff --git a/src/containers/CollectionPage.js b/src/containers/CollectionPage.js index bc119da5..8c10703e 100644 --- a/src/containers/CollectionPage.js +++ b/src/containers/CollectionPage.js @@ -1,6 +1,5 @@ import React, { PropTypes } from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; -import { Link } from 'react-router'; import { connect } from 'react-redux'; import { loadEntries } from '../actions/entries'; import { selectEntries } from '../reducers'; diff --git a/src/index.js b/src/index.js index 79fea2e0..508b38f0 100644 --- a/src/index.js +++ b/src/index.js @@ -10,13 +10,13 @@ import './index.css'; const store = configureStore(); +// Create an enhanced history that syncs navigation events with the store +syncHistory(store); + const el = document.createElement('div'); el.id = 'root'; document.body.appendChild(el); -// Create an enhanced history that syncs navigation events with the store -syncHistory(store); - render((