Refactor stateActions for better overview.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
export const toggleToolArea = () =>
|
||||
({
|
||||
type : 'TOGGLE_TOOL_AREA'
|
||||
});
|
||||
|
||||
export const openToolArea = () =>
|
||||
({
|
||||
type : 'OPEN_TOOL_AREA'
|
||||
});
|
||||
|
||||
export const closeToolArea = () =>
|
||||
({
|
||||
type : 'CLOSE_TOOL_AREA'
|
||||
});
|
||||
|
||||
export const setToolTab = (toolTab) =>
|
||||
({
|
||||
type : 'SET_TOOL_TAB',
|
||||
payload : { toolTab }
|
||||
});
|
||||
Reference in New Issue
Block a user