Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 7268 Rev 7275
Línea 1... Línea 1...
1
import React from 'react'
1
import React from 'react'
-
 
2
import styled from 'styled-components'
-
 
3
 
2
import EmptySection from '../UI/EmptySection'
4
import EmptySection from '../UI/EmptySection'
-
 
5
import WidgetLayout from '../widgets/WidgetLayout'
-
 
6
 
-
 
7
const StyledContainer = styled(WidgetLayout)`
-
 
8
  padding: 1rem;
-
 
9
  h2 {
-
 
10
    font-size: 1.1rem;
-
 
11
    font-weight: 600;
-
 
12
    color: var(--title-color);
-
 
13
  }
-
 
14
`
Línea 3... Línea 15...
3
 
15
 
4
const JobAttr = ({ title, info }) => {
16
const JobAttr = ({ title, info }) => {
5
  return (
17
  return (
6
    <div className="job-attr">
-
 
7
      <div className="job-attr-header">
18
    <StyledContainer>
8
        <h2>{title}</h2>
19
      <h2>{title}</h2>
9
      </div>
20
 
10
      {!info.length ? (
21
      {!info.length ? (
11
        <EmptySection message="Sin información" align="left" />
22
        <EmptySection message="Sin información" align="left" />
12
      ) : !Array.isArray(info) ? (
23
      ) : !Array.isArray(info) ? (
13
        <span>{info}</span>
24
        <span>{info}</span>
Línea 18... Línea 29...
18
              <span>{item}</span>
29
              <span>{item}</span>
19
            </li>
30
            </li>
20
          ))}
31
          ))}
21
        </ul>
32
        </ul>
22
      )}
33
      )}
23
    </div>
34
    </StyledContainer>
24
  )
35
  )
25
}
36
}
Línea 26... Línea 37...
26
 
37