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

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

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 20
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
eloc 13
mnd 0
bc 0
fnc 1
dl 0
loc 20
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 { KeyboardDatePicker } from '@material-ui/pickers'
3
4 3
const DatePicker = styled(KeyboardDatePicker)(({ theme }) => ({
5
  padding: theme.spacing(1),
6
  margin: 0,
7
  '& .MuiInputLabel': {
8
    '&-formControl': {
9
      padding: theme.spacing(1),
10
      transform: 'translate(0, 1.5px) scale(0.75)'
11
    }
12
  },
13
  '& .MuiInput': {
14
    '&-underline:after': {
15
      borderBottom: `2px solid ${theme.colors.primary}`
16
    }
17
  }
18
}))
19
20
export default DatePicker
21