Refactor context menu actions and constants
This is in order to accomodate more stateful objects by separating the context menu specific actions and constants into their own files.
This commit is contained in:
parent
28bd1f201c
commit
c1340ef758
4 changed files with 5 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
import * as types from '../constants'
|
import * as types from '../constants/contextMenu'
|
||||||
|
|
||||||
export function updateContextMenu(items) {
|
export function updateContextMenu(items) {
|
||||||
return { type: types.UPDATE_CONTEXT_MENU, items }
|
return { type: types.UPDATE_CONTEXT_MENU, items }
|
||||||
|
|
@ -2,7 +2,7 @@ import React from 'react'
|
||||||
import getMuiTheme from 'material-ui/lib/styles/getMuiTheme'
|
import getMuiTheme from 'material-ui/lib/styles/getMuiTheme'
|
||||||
import Styles from 'material-ui/lib/styles'
|
import Styles from 'material-ui/lib/styles'
|
||||||
import mui from 'material-ui'
|
import mui from 'material-ui'
|
||||||
import * as ContextMenuActions from '../actions'
|
import * as ContextMenuActions from '../actions/contextMenu'
|
||||||
|
|
||||||
import { bindActionCreators } from 'redux'
|
import { bindActionCreators } from 'redux'
|
||||||
import { connect } from 'react-redux'
|
import { connect } from 'react-redux'
|
||||||
|
|
@ -15,7 +15,8 @@ import * as utils from 'utils'
|
||||||
const {
|
const {
|
||||||
Popover,
|
Popover,
|
||||||
Menu,
|
Menu,
|
||||||
MenuItem} = mui
|
MenuItem
|
||||||
|
} = mui
|
||||||
|
|
||||||
const DefaultRawTheme = Styles.LightRawTheme
|
const DefaultRawTheme = Styles.LightRawTheme
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
import { UPDATE_CONTEXT_MENU, OPEN_CONTEXT_MENU, CLOSE_CONTEXT_MENU } from '../constants'
|
import { UPDATE_CONTEXT_MENU, OPEN_CONTEXT_MENU, CLOSE_CONTEXT_MENU } from '../constants/contextMenu'
|
||||||
|
|
||||||
|
|
||||||
const initialState =
|
const initialState =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue