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

@@ -12,7 +12,7 @@ type Props = {
event: Event,
};
const description = event => {
const description = (event) => {
switch (event.name) {
case "api_keys.create":
return (
@@ -61,11 +61,11 @@ const description = event => {
case "users.invite":
return (
<React.Fragment>
{capitalize(event.verbPastTense)} {event.data.name} (<a
href={`mailto:${event.data.email || ""}`}
>
{capitalize(event.verbPastTense)} {event.data.name} (
<a href={`mailto:${event.data.email || ""}`}>
{event.data.email || ""}
</a>)
</a>
)
</React.Fragment>
);
case "users.suspend":
@@ -220,16 +220,14 @@ const EventListItem = ({ event }: Props) => {
{event.actorIpAddress}
</a>
</IP>
) : (
undefined
)
) : undefined
}
/>
);
};
const IP = styled("span")`
color: ${props => props.theme.textTertiary};
color: ${(props) => props.theme.textTertiary};
font-size: 12px;
`;

View File

@@ -14,8 +14,8 @@ import UiStore from "stores/UiStore";
type Props = {
children?: React.Node,
onSuccess: string => void | Promise<void>,
onError: string => void,
onSuccess: (string) => void | Promise<void>,
onError: (string) => void,
submitText: string,
borderRadius: number,
ui: UiStore,
@@ -85,7 +85,7 @@ class ImageUpload extends React.Component<Props> {
{this.isUploading && <LoadingIndicator />}
<AvatarEditorContainer>
<AvatarEditor
ref={ref => (this.avatarEditorRef = ref)}
ref={(ref) => (this.avatarEditorRef = ref)}
image={this.file}
width={250}
height={250}
@@ -154,7 +154,7 @@ const RangeInput = styled.input`
height: 16px;
width: 16px;
border-radius: 50%;
background: ${props => props.theme.text};
background: ${(props) => props.theme.text};
cursor: pointer;
}