Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2611 Rev 2612
Línea 9... Línea 9...
9
import useFetch from './hooks/useFetch'
9
import useFetch from './hooks/useFetch'
Línea 10... Línea 10...
10
 
10
 
11
import { Chat } from './components/chat'
11
import { Chat } from './components/chat'
12
import Header from './components/UI/navbar/Header'
12
import Header from './components/UI/navbar/Header'
13
import NotificationAlert from './components/UI/notification/NotificationAlert'
-
 
14
import ErrorBoundary from './components/error-boundary/ErrorBoundary'
13
import NotificationAlert from './components/UI/notification/NotificationAlert'
15
import Footer from './components/footer/Footer'
-
 
16
import ProvidersWrapper from './providers/providers-wrapper'
14
import Footer from './components/footer/Footer'
17
import AppRoutes from './routes/routes'
15
import AppRoutes from './routes/routes'
18
import GlobalStyle from './styles/GlobalStyles'
16
import GlobalStyle from './styles/GlobalStyles'
19
import Spinner from './components/UI/Spinner'
17
import Spinner from './components/UI/Spinner'
Línea 94... Línea 92...
94
  if (credentialsError) {
92
  if (credentialsError) {
95
    return <ErrorPage />
93
    return <ErrorPage />
96
  }
94
  }
Línea 97... Línea 95...
97
 
95
 
98
  return (
-
 
99
    <ProvidersWrapper>
96
  return (
100
      <ErrorBoundary>
97
    <>
101
        <GlobalStyle isAuth={isAuth} />
98
      <GlobalStyle isAuth={isAuth} />
102
 
99
 
103
        {isAuth ? <Header theme={theme_id} /> : null}
100
      {isAuth ? <Header theme={theme_id} /> : null}
104
 
101
 
105
        <Box minHeight='65vh'>
102
      <Box minHeight='65vh'>
106
          <AppRoutes />
103
        <AppRoutes />
107
        </Box>
104
      </Box>
108
 
105
 
109
        {isAuth ? <Chat /> : null}
106
      {isAuth ? <Chat /> : null}
110
        <NotificationAlert />
107
      <NotificationAlert />
111
        <Footer />
108
      <Footer />
112
      </ErrorBoundary>
-
 
113
    </ProvidersWrapper>
109
    </>
114
  )
110
  )