chore: Upgrade Prettier 1.8 -> 2.0 (#1436)

This commit is contained in:
Tom Moor
2020-08-08 18:53:11 -07:00
committed by GitHub
parent 68dcb4de5f
commit e312b264a6
218 changed files with 1156 additions and 1169 deletions

View File

@ -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};
}
`;