Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2812 Rev 2963
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 { Container, CssBaseline } from '@mui/material'
Línea 5... Línea 4...
5
 
4
 
6
import { Chat } from '@components/chat'
5
import { Chat } from '@components/chat'
7
import Footer from '@components/footer/Footer'
6
import Footer from '@components/footer/Footer'
8
import Header from '@components/UI/navbar/Header'
7
import Header from '@components/UI/navbar/Header'
Línea 9... Línea 8...
9
import NotificationAlert from '@components/UI/notification/NotificationAlert'
8
import NotificationAlert from '@components/UI/notification/NotificationAlert'
10
 
-
 
11
export default function RootLayout() {
-
 
12
  const { isAuth } = useSelector(({ auth }) => auth)
9
 
13
 
10
export default function RootLayout() {
14
  return (
11
  return (
Línea 15... Línea 12...
15
    <>
12
    <>
Línea 16... Línea 13...
16
      <CssBaseline />
13
      <CssBaseline />
17
 
14
 
18
      {isAuth ? <Header /> : null}
-
 
19
 
-
 
20
      <Container sx={{ minHeight: '65vh' }}>
-
 
21
        <Outlet />
15
      <Header />
Línea -... Línea 16...
-
 
16
 
-
 
17
      <Container sx={{ minHeight: '65vh', padding: 0 }}>
22
 
18
        <Outlet />
23
        {isAuth ? <Chat /> : null}
19
      </Container>
24
        <NotificationAlert />
20
 
25
      </Container>
21
      <Chat />