Skip to content

Commit

Permalink
used a better syntax for importing lodash methods
Browse files Browse the repository at this point in the history
  • Loading branch information
pooyaj committed Jan 25, 2016
1 parent dcb4425 commit 391fc57
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/real-world/containers/UserPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { loadUser, loadStarred } from '../actions'
import User from '../components/User'
import Repo from '../components/Repo'
import List from '../components/List'
import { zip } from 'lodash/array'
import zip from 'lodash/zip'

function loadData(props) {
const { login } = props
Expand Down
2 changes: 1 addition & 1 deletion examples/real-world/reducers/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as ActionTypes from '../actions'
import { merge } from 'lodash/object'
import merge from 'lodash/merge'
import paginate from './paginate'
import { routerStateReducer as router } from 'redux-router'
import { combineReducers } from 'redux'
Expand Down
4 changes: 2 additions & 2 deletions examples/real-world/reducers/paginate.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { merge } from 'lodash/object'
import { union } from 'lodash/array'
import merge from 'lodash/merge'
import union from 'lodash/union'

// Creates a reducer managing pagination, given the action types to handle,
// and a function telling how to extract the key from an action.
Expand Down

0 comments on commit 391fc57

Please sign in to comment.