chore: Upgrade Prettier 1.8 -> 2.0 (#1436)
This commit is contained in:
@ -5,7 +5,7 @@ import { SearchIcon } from "outline-icons";
|
||||
import Flex from "components/Flex";
|
||||
|
||||
type Props = {
|
||||
onChange: string => void,
|
||||
onChange: (string) => void,
|
||||
defaultValue?: string,
|
||||
theme: Object,
|
||||
};
|
||||
@ -40,7 +40,7 @@ class SearchField extends React.Component<Props> {
|
||||
/>
|
||||
<StyledInput
|
||||
{...this.props}
|
||||
ref={ref => (this.input = ref)}
|
||||
ref={(ref) => (this.input = ref)}
|
||||
onChange={this.handleChange}
|
||||
spellCheck="false"
|
||||
placeholder="Search…"
|
||||
@ -64,26 +64,26 @@ const StyledInput = styled.input`
|
||||
font-weight: 400;
|
||||
outline: none;
|
||||
border: 0;
|
||||
background: ${props => props.theme.sidebarBackground};
|
||||
transition: ${props => props.theme.backgroundTransition};
|
||||
background: ${(props) => props.theme.sidebarBackground};
|
||||
transition: ${(props) => props.theme.backgroundTransition};
|
||||
border-radius: 4px;
|
||||
|
||||
color: ${props => props.theme.text};
|
||||
color: ${(props) => props.theme.text};
|
||||
|
||||
::-webkit-search-cancel-button {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
::-webkit-input-placeholder {
|
||||
color: ${props => props.theme.placeholder};
|
||||
color: ${(props) => props.theme.placeholder};
|
||||
}
|
||||
:-moz-placeholder {
|
||||
color: ${props => props.theme.placeholder};
|
||||
color: ${(props) => props.theme.placeholder};
|
||||
}
|
||||
::-moz-placeholder {
|
||||
color: ${props => props.theme.placeholder};
|
||||
color: ${(props) => props.theme.placeholder};
|
||||
}
|
||||
:-ms-input-placeholder {
|
||||
color: ${props => props.theme.placeholder};
|
||||
color: ${(props) => props.theme.placeholder};
|
||||
}
|
||||
`;
|
||||
|
||||
|
Reference in New Issue
Block a user