Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3692 Rev 3693
Línea 2... Línea 2...
2
import { useSelector } from 'react-redux';
2
import { useSelector } from 'react-redux';
3
import { styled } from '@mui/material';
3
import { styled } from '@mui/material';
Línea 4... Línea 4...
4
 
4
 
Línea 5... Línea 5...
5
import AlertComponent from './AlertComponent';
5
import AlertComponent from './AlertComponent';
6
 
6
 
7
const NotificationDiv = styled('div')`
7
const NotificationDiv = styled('div')(({ theme }) => ({
8
  position: fixed;
8
  position: 'fixed',
9
  top: 1rem;
9
  top: '1rem',
10
  left: 50%;
10
  left: '50%',
11
  transform: translateX(-50%);
11
  transform: 'translateX(-50%)',
-
 
12
  display: 'flex',
12
  display: flex;
13
  flexDirection: 'column',
13
  flex-direction: column;
14
  gap: theme.spacing(0.5),
14
  justify-content: center;
15
  justifyContent: 'center',
15
  align-items: center;
16
  alignItems: 'center',
-
 
17
  zIndex: 2200
16
  z-index: 2200;
18
}));
17
`;
19
 
Línea 18... Línea 20...
18
const NotificationAlert = () => {
20
const NotificationAlert = () => {
19
  const notifications = useSelector(({ notification }) => notification.notifications);
21
  const notifications = useSelector(({ notification }) => notification.notifications);