Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 2960 Rev 2961
Línea 1... Línea 1...
1
import React, { useState } from 'react'
1
import React, { useState } from 'react'
2
import { useNavigate } from 'react-router-dom'
2
import { useNavigate } from 'react-router-dom'
3
import { useDispatch } from 'react-redux'
3
import { useDispatch } from 'react-redux'
4
import { Button } from '@mui/material'
4
import { Box, Button } from '@mui/material'
Línea 5... Línea 5...
5
 
5
 
6
import { getOnRoom } from '@services/onRoom'
6
import { getOnRoom } from '@services/onRoom'
-
 
7
import { addNotification } from '@store/notification/notification.actions'
Línea 7... Línea 8...
7
import { addNotification } from '@store/notification/notification.actions'
8
import colors from '@styles/colors'
Línea 8... Línea 9...
8
 
9
 
9
import Spinner from '@components/UI/Spinner'
10
import Spinner from '@components/UI/Spinner'
Línea 24... Línea 25...
24
      setLoading(false)
25
      setLoading(false)
25
    }
26
    }
26
  }
27
  }
Línea 27... Línea 28...
27
 
28
 
-
 
29
  return (
-
 
30
    <Box
-
 
31
      sx={{
-
 
32
        position: 'fixed',
-
 
33
        top: 0,
-
 
34
        left: 0,
-
 
35
        height: '100vh',
-
 
36
        width: '100%',
-
 
37
        backgroundColor: colors.main
28
  return (
38
      }}
29
    <>
39
    >
30
      {loading && <Spinner absolute />}
40
      {loading && <Spinner absolute />}
31
      <Button onClick={() => navigate('/microlearning')}>
41
      <Button onClick={() => navigate('/microlearning')}>
32
        Micro Aprendizaje
42
        Micro Aprendizaje
33
      </Button>
43
      </Button>
34
      <Button onClick={handleOnRoom}>On room</Button>
44
      <Button onClick={handleOnRoom}>On room</Button>
35
      <Button onClick={() => navigate('/habits')}>Habitos</Button>
45
      <Button onClick={() => navigate('/habits')}>Habitos</Button>
36
      <Button onClick={() => navigate('/dashboard')}>Ir al inicio</Button>
46
      <Button onClick={() => navigate('/dashboard')}>Ir al inicio</Button>
37
    </>
47
    </Box>
38
  )
48
  )