Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3188 Rev 3201
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
2
import { Outlet } from 'react-router-dom'
2
import { Outlet } from 'react-router-dom'
3
import { useSelector } from 'react-redux'
-
 
4
import { Container, CssBaseline } from '@mui/material'
3
import { CssBaseline } from '@mui/material'
Línea 5... Línea -...
5
 
-
 
6
import { Chat } from '@components/chat'
4
 
7
import Footer from '@components/footer/Footer'
-
 
-
 
5
import Footer from '@components/footer/Footer'
8
import Header from '@components/UI/navbar/Header'
6
 
Línea 9... Línea 7...
9
import NotificationAlert from '@components/UI/notification/NotificationAlert'
7
import NotificationAlert from '@components/UI/notification/NotificationAlert'
10
 
-
 
11
export default function RootLayout() {
-
 
12
  const isAuth = useSelector((state) => state.auth.isAuth)
8
 
13
 
9
export default function RootLayout() {
14
  return (
10
  return (
15
    <>
-
 
16
      <CssBaseline />
-
 
17
 
-
 
18
      {isAuth && <Header />}
-
 
19
 
-
 
20
      <Container
-
 
21
        sx={{
-
 
22
          minHeight: 'calc(100vh - 65px - 129px)',
-
 
23
          padding: 0,
-
 
24
          marginTop: ({ spacing }) => spacing(1)
-
 
25
        }}
11
    <>
26
      >
-
 
27
        <Outlet />
-
 
28
      </Container>
-
 
29
 
12
      <CssBaseline />
30
      <Chat />
13
      <Outlet />
31
      <NotificationAlert />
14
      <NotificationAlert />
32
      <Footer />
15
      <Footer />
33
    </>
16
    </>