From 7e19f387e50829af0af79f93b5b5dfeb19578941 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 29 Jul 2021 20:09:45 +0300 Subject: [PATCH] small change --- src/context/LayoutContext.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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" }); }