Proyectos de Subversion LeadersLinked - SPA

Rev

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

Rev 3657 Rev 3658
Línea 72... Línea 72...
72
          eventsAndTasks.map(
72
          eventsAndTasks.map(
73
            ({ id, allDay, url, title, backgroundColor, start, end, textColor, source }) => {
73
            ({ id, allDay, url, title, backgroundColor, start, end, textColor, source }) => {
74
              return (
74
              return (
75
                <li key={id}>
75
                <li key={id}>
76
                  <StyledEventContainer
76
                  <StyledEventContainer
77
                    sx={{
-
 
78
                      backgroundColor,
77
                    sx={{ backgroundColor }}
79
                      color: textColor
-
 
80
                    }}
-
 
81
                    onClick={() =>
78
                    onClick={() =>
82
                      source === 'external' ? window.open(url, '_blank') : getAdminAuth(url)
79
                      source === 'external' ? window.open(url, '_blank') : getAdminAuth(url)
83
                    }
80
                    }
84
                  >
81
                  >
85
                    <Typography variant='h4'>
82
                    <Typography variant='h4' sx={{ color: textColor }}>
86
                      <b>Evento: </b>
83
                      <b>Evento: </b>
87
                      {title}
84
                      {title}
88
                    </Typography>
85
                    </Typography>
89
                    <Typography variant='h4'>
86
                    <Typography variant='h4' sx={{ color: textColor }}>
90
                      <b>Inicio: </b>
87
                      <b>Inicio: </b>
91
                      {formatDate(start, allDay)}
88
                      {formatDate(start, allDay)}
92
                    </Typography>
89
                    </Typography>
93
                    {end && (
90
                    {end && (
94
                      <Typography variant='h4'>
91
                      <Typography variant='h4' sx={{ color: textColor }}>
95
                        <b>Fin: </b>
92
                        <b>Fin: </b>
96
                        {formatDate(end, allDay)}
93
                        {formatDate(end, allDay)}
97
                      </Typography>
94
                      </Typography>
98
                    )}
95
                    )}
99
                    <Typography variant='h4'>
96
                    <Typography variant='h4' sx={{ color: textColor }}>
100
                      <b>Tipo: </b>
97
                      <b>Tipo: </b>
101
                      {source === 'external' ? 'Externo' : 'Interno'}
98
                      {source === 'external' ? 'Externo' : 'Interno'}
102
                    </Typography>
99
                    </Typography>
103
                  </StyledEventContainer>
100
                  </StyledEventContainer>
104
                </li>
101
                </li>