- added modal window for sviluppumbria;
This commit is contained in:
@@ -8,13 +8,10 @@ import { useStoreValue, storeSet } from '../../store';
|
||||
// components
|
||||
import AppSidebar from './components/AppSidebar';
|
||||
import AppTopbar from './components/AppTopbar';
|
||||
import { pathOr } from 'ramda';
|
||||
|
||||
const DefaultLayout = ({ children }) => {
|
||||
const isError404 = useStoreValue('isError404');
|
||||
const location = useLocation();
|
||||
const userData = useStoreValue('userData');
|
||||
const role = pathOr('', ['role', 'roleType'], userData);
|
||||
|
||||
useEffect(() => {
|
||||
storeSet('isError404', false);
|
||||
|
||||
Reference in New Issue
Block a user