Passed
Push — master ( 6fca9e...82ba0d )
by Huu-Phat
02:25 queued 10s
created

cms/src/error/components/base/Button.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 19
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 16
mnd 0
bc 0
fnc 1
dl 0
loc 19
ccs 1
cts 1
cp 1
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10
1
import { styled } from '@material-ui/core/styles'
2
3 7
const Button = styled('a')(({ theme }) => ({
4
  fontSize: theme.fontSizes.base,
5
  textDecoration: 'none',
6
  textTransform: 'uppercase',
7
  background: theme.colors.primary,
8
  display: 'inline-block',
9
  padding: '15px 30px',
10
  borderRadius: '40px',
11
  color: theme.colors.primaryBg,
12
  fontWeight: '700',
13
  boxShadow: `0 4px 15px -5px ${theme.colors.primary}`,
14
  border: 'none',
15
  margin: `${theme.spaces.xsmall}px`,
16
  cursor: 'pointer'
17
}))
18
19
export default Button
20