Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 6740 | Rev 6748 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 6740 Rev 6745
Línea 6... Línea 6...
6
import PublicRoute from './PublicRoute'
6
import PublicRoute from './PublicRoute'
7
import PrivateRoute from './PrivateRoute'
7
import PrivateRoute from './PrivateRoute'
8
import Spinner from '../components/UI/Spinner'
8
import Spinner from '../components/UI/Spinner'
9
import NotificationAlert from '../components/UI/notification/NotificationAlert'
9
import NotificationAlert from '../components/UI/notification/NotificationAlert'
10
import LoaderContainer from '../components/UI/LoaderContainer'
10
import LoaderContainer from '../components/UI/LoaderContainer'
-
 
11
import { getPermissions } from '../redux/auth/auth.actions'
-
 
12
import useLocalStorage from '../hooks/useLocalStorage'
Línea 11... Línea 13...
11
 
13
 
12
const Header = lazy(() => import('../components/navbar/Header'))
14
const Header = lazy(() => import('../components/navbar/Header'))
13
const Auth = lazy(() => import('../pages/auth/Auth'))
15
const Auth = lazy(() => import('../pages/auth/Auth'))
14
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
16
const DashboardPage = lazy(() => import('../pages/dashboard/DashboardPage'))
Línea 41... Línea 43...
41
)
43
)
42
const JoinedGroupsPage = lazy(() => import('../pages/groups/JoinedGroupsPage'))
44
const JoinedGroupsPage = lazy(() => import('../pages/groups/JoinedGroupsPage'))
43
const MyGroupsPage = lazy(() => import('../pages/groups/MyGroupsPage'))
45
const MyGroupsPage = lazy(() => import('../pages/groups/MyGroupsPage'))
Línea 44... Línea 46...
44
 
46
 
45
const AppRouter = () => {
47
const AppRouter = () => {
46
  const { isAuth } = useSelector(({ auth }) => auth)
48
  const { isAuth, defaultNetwork, theme_id } = useSelector(({ auth }) => auth)
Línea -... Línea 49...
-
 
49
  const dispatch = useDispatch()
-
 
50
 
-
 
51
  useLocalStorage('config', {
-
 
52
    isAuth,
-
 
53
    defaultNetwork,
-
 
54
    theme_id,
47
  const dispatch = useDispatch()
55
  })
-
 
56
 
48
 
57
  useEffect(() => {
49
  useEffect(() => {
58
    dispatch(getPermissions())
Línea 50... Línea 59...
50
    dispatch(getLanguage())
59
    dispatch(getLanguage())
51
  }, [])
60
  }, [])