UNPKG

patternplate-client

Version:

Universal javascript client application for patternplate

17 lines (13 loc) 298 B
import {patchLocation} from './'; export default toggleExpandMenu; export const type = 'TOGGLE_EXPAND_MENU'; function toggleExpandMenu() { return (dispatch, getState) => { dispatch(patchLocation({ query: { expanded: !getState().expanded } })); }; } toggleExpandMenu.type = type;