From f7fb01e3cbc827f55367d3c1c9a7670c3d7a6675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Zen?= Date: Mon, 18 Jul 2016 15:07:59 -0300 Subject: [PATCH] refinments --- src/actions/media.js | 4 ++-- src/containers/CollectionPage.js | 1 - src/index.js | 6 +++--- 3 files changed, 5 insertions(+), 6 deletions(-) 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((