Skip to content

Commit 69cc662

Browse files
committed
Lint fixes
1 parent 112b06c commit 69cc662

File tree

2 files changed

+30
-32
lines changed

2 files changed

+30
-32
lines changed

src/components/Select/Select.jsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,17 @@ import ReactSelect from 'react-select'
1111
import CreatableSelect from 'react-select/lib/Creatable'
1212
import './Select.scss'
1313

14-
let customStyles = {}
15-
1614
const Select = (props) => {
17-
let containerclass = "react-select-hiddendropdown-container"
15+
let containerclass = 'react-select-hiddendropdown-container'
1816
if (props.showDropdownIndicator) {
19-
containerclass = "react-select-container"
17+
containerclass = 'react-select-container'
2018
}
21-
19+
2220
if (props.createOption) {
2321
return (
2422
<CreatableSelect
2523
{...props}
26-
createOptionPosition="first"
24+
createOptionPosition="first"
2725
className={containerclass}
2826
classNamePrefix="react-select"
2927
noOptionsMessage={() => ('Type to search')}
@@ -33,7 +31,7 @@ const Select = (props) => {
3331
return (
3432
<ReactSelect
3533
{...props}
36-
createOptionPosition="first"
34+
createOptionPosition="first"
3735
className={containerclass}
3836
classNamePrefix="react-select"
3937
noOptionsMessage={() => ('Type to search')}

src/components/Select/Select.scss

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@
1515
}
1616

1717
& .react-select__control {
18-
height: $reactselectheight;
19-
border-color: $tc-gray-30;
20-
box-shadow: none;//0 0 2px 0 rgba(6, 129, 255, 0.7) !important;
18+
height: $reactselectheight;
19+
border-color: $tc-gray-30;
20+
box-shadow: none;//0 0 2px 0 rgba(6, 129, 255, 0.7) !important;
2121

22-
& > div {
23-
height: $reactselectheight - 2px;
24-
}
22+
& > div {
23+
height: $reactselectheight - 2px;
24+
}
2525

26-
& input {
27-
height: $reactselectcontentheight - 3px;
28-
transition: none !important;
29-
}
26+
& input {
27+
height: $reactselectcontentheight - 3px;
28+
transition: none !important;
29+
}
3030

31-
& input:focus {
32-
box-shadow: none !important;
33-
-webkit-box-shadow: none !important;
34-
height: $reactselectcontentheight - 3px;
35-
}
31+
& input:focus {
32+
box-shadow: none !important;
33+
-webkit-box-shadow: none !important;
34+
height: $reactselectcontentheight - 3px;
35+
}
3636
}
3737

3838
& .react-select__value-container {
@@ -43,30 +43,30 @@
4343

4444
& .react-select__option {
4545
@include roboto-medium;
46-
font-size: 13px;
46+
font-size: 13px;
4747
}
4848

4949
& .react-select__multi-value {
5050
background-color: $tc-gray-20 !important;
51-
font-weight: bold;
51+
font-weight: bold;
5252
}
5353

5454
& .react-select__menu-notice--no-options {
5555
text-align : left !important;
56-
font-size : 15px;
57-
color: $tc-gray-50;
56+
font-size : 15px;
57+
color: $tc-gray-50;
5858
}
5959
}
6060
.react-select-hiddendropdown-container {
6161
@include reactselectstyles;
6262
/*hide dropdown indicator*/
6363
& .react-select__control {
64-
& > div:nth-child(2) {
65-
display: none;
66-
}
67-
& .react-select__dropdown-indicator {
68-
display: none;
69-
}
64+
& > div:nth-child(2) {
65+
display: none;
66+
}
67+
& .react-select__dropdown-indicator {
68+
display: none;
69+
}
7070
}
7171
}
7272

0 commit comments

Comments
 (0)