Passed
Pull Request — master (#209)
by Huu-Phat
04:59
created

modules/home/components/common/Anchor.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 8
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 4
mnd 0
bc 0
fnc 1
dl 0
loc 8
ccs 1
cts 1
cp 1
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
import styled from 'styled-components/macro'
2
3
const Anchor = styled.span`
4
  position: absolute;
5 6
  top: ${props => props.top || 0}px;
6
`
7
8
export default Anchor
9