Passed
Push — master ( f87507...569a9a )
by Huu-Phat
23:11 queued 18:48
created

modules/home/components/Experiences.js

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 36
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 33
mnd 0
bc 0
fnc 0
dl 0
loc 36
ccs 4
cts 4
cp 1
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
import React from 'react'
2
import { EXPERIENCES } from '~/modules/home/consts/pages'
3
import { getCompanies } from '~/modules/home/consts/experiences'
4
import Header from '~/modules/home/components/common/section/Header'
5
import SectionContainer from '~/modules/home/components/common/section/Container'
6
import List from '~/modules/home/components/experiences/List'
7
import Container from 'react-bootstrap/Container'
8
import Row from 'react-bootstrap/Row'
9
import Anchor from '~/modules/home/components/common/Anchor'
10
import { Translate } from 'react-localize-redux'
11
12 1
const companyRows = getCompanies()
13
14 1
const Experiences = () => (
15 1
  <SectionContainer>
16
    <Anchor id={EXPERIENCES} top={-40} />
17
    <Container>
18
      <Header>
19
        <h2>
20
          <Translate id="Exp: Title" />
21
        </h2>
22
        <h4>
23
          <Translate id="Exp: SubTitle" />
24
        </h4>
25
      </Header>
26
      {companyRows.map((companies, index) => (
27 2
        <Row key={index}>
28
          <List companies={companies} />
29
        </Row>
30
      ))}
31
    </Container>
32
  </SectionContainer>
33
)
34
35
export default Experiences
36