diff --git a/src/context/LayoutContext.js b/src/context/LayoutContext.js index 12ea4fd..04a77d2 100644 --- a/src/context/LayoutContext.js +++ b/src/context/LayoutContext.js @@ -15,7 +15,7 @@ function layoutReducer(state, action) { function LayoutProvider({ children }) { var [state, dispatch] = React.useReducer(layoutReducer, { - isSidebarOpened: true, + isSidebarOpened: true }); return ( @@ -44,9 +44,8 @@ function useLayoutDispatch() { export { LayoutProvider, useLayoutState, useLayoutDispatch, toggleSidebar }; -// ########################################################### function toggleSidebar(dispatch) { dispatch({ - type: "TOGGLE_SIDEBAR", + type: "TOGGLE_SIDEBAR" }); }