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

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

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 10
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 7
mnd 0
bc 0
fnc 1
dl 0
loc 10
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
ccs 1
cts 1
cp 1
rs 10
1
import { styled } from '@material-ui/core/styles'
2
import Button from '@material-ui/core/Button'
3
4 2
const PostButton = styled(Button)(({ theme }) => ({
5
  backgroundColor: theme.colors.primary,
6
  marginLeft: `${theme.spaces.base}px`,
7
  padding: '12px 24px'
8
}))
9
10
export default PostButton
11