diff --git a/package-lock.json b/package-lock.json index 284c40e..ca8e725 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1659,9 +1659,9 @@ } }, "@gridsuite/commons-ui": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@gridsuite/commons-ui/-/commons-ui-0.27.2.tgz", - "integrity": "sha512-a608FrTjTP39W3Z8EnnedrtlMGr/3LxFQ3gc3eaBbtwKHSn6FBm/XoATS9O9jgcPOh9T5srQU29LKcZraGgI/A==", + "version": "0.28.0", + "resolved": "https://registry.npmjs.org/@gridsuite/commons-ui/-/commons-ui-0.28.0.tgz", + "integrity": "sha512-Qm2syqLHe4KqnLNU2qHSsjcL2YWmK4FxKVecZTDrpIjJEWQTyjQVnXLxJmAXyMZ7ok8IfaPqhp05udLF/9kZvA==", "requires": { "autosuggest-highlight": "^3.2.0", "clsx": "^1.0.4", diff --git a/package.json b/package.json index b3eb3c9..bb8bb5d 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "dependencies": { "@emotion/react": "^11.8.2", "@emotion/styled": "^11.8.1", - "@gridsuite/commons-ui": "0.27.2", + "@gridsuite/commons-ui": "0.28.0", "@mui/icons-material": "^5.5.1", "@mui/lab": "^5.0.0-alpha.75", "@mui/material": "^5.5.3", diff --git a/src/components/app.js b/src/components/app.js index 18670b8..b31d6f8 100644 --- a/src/components/app.js +++ b/src/components/app.js @@ -88,8 +88,8 @@ const App = () => { const signInCallbackError = useSelector( (state) => state.signInCallbackError ); - const unauthorizedUserInfo = useSelector( - (state) => state.unauthorizedUserInfo + const authenticationRouterError = useSelector( + (state) => state.authenticationRouterError ); const showAuthenticationRouterLogin = useSelector( (state) => state.showAuthenticationRouterLogin @@ -311,7 +311,7 @@ const App = () => { { - state.unauthorizedUserInfo = action.unauthorizedUserInfo; + state.authenticationRouterError = action.authenticationRouterError; + }, + + [LOGOUT_ERROR]: (state, action) => { + state.authenticationRouterError = action.authenticationRouterError; + }, + + [USER_VALIDATION_ERROR]: (state, action) => { + state.authenticationRouterError = action.authenticationRouterError; }, [SHOW_AUTH_INFO_LOGIN]: (state, action) => {