apply prettier styles

This commit is contained in:
restrry 2020-05-22 09:08:58 +02:00
parent 64ad4f3f92
commit bf04235dae
7130 changed files with 31393 additions and 37163 deletions

View file

@ -51,7 +51,7 @@ type NavProps = RouteComponentProps & {
};
const Nav = withRouter(({ history, navigateToApp, pages }: NavProps) => {
const navItems = pages.map(page => ({
const navItems = pages.map((page) => ({
id: page.id,
name: page.title,
onClick: () => history.push(`/${page.id}`),
@ -122,7 +122,7 @@ const EmbeddableExplorerApp = ({
];
const routes = pages.map((page, i) => (
<Route key={i} path={`/${page.id}`} render={props => page.component} />
<Route key={i} path={`/${page.id}`} render={(props) => page.component} />
));
return (

View file

@ -84,7 +84,7 @@ export function EmbeddablePanelExample({ embeddableServices }: Props) {
const factory = embeddableServices.getEmbeddableFactory(SEARCHABLE_LIST_CONTAINER);
const promise = factory?.create(searchableInput);
if (promise) {
promise.then(e => {
promise.then((e) => {
if (ref.current) {
setEmbeddable(e);
}

View file

@ -82,7 +82,7 @@ export class TodoEmbeddableExample extends React.Component<Props, State> {
icon: 'broom',
title: 'Trash',
})
.then(embeddable => {
.then((embeddable) => {
this.embeddable = embeddable;
this.setState({ loading: false });
});
@ -135,7 +135,7 @@ export class TodoEmbeddableExample extends React.Component<Props, State> {
<EuiFormRow label="Title">
<EuiFieldText
data-test-subj="titleTodo"
onChange={ev => this.setState({ title: ev.target.value })}
onChange={(ev) => this.setState({ title: ev.target.value })}
/>
</EuiFormRow>
</EuiFlexItem>
@ -143,7 +143,7 @@ export class TodoEmbeddableExample extends React.Component<Props, State> {
<EuiFormRow label="Icon">
<EuiFieldText
data-test-subj="iconTodo"
onChange={ev => this.setState({ icon: ev.target.value })}
onChange={(ev) => this.setState({ icon: ev.target.value })}
/>
</EuiFormRow>
</EuiFlexItem>
@ -153,7 +153,7 @@ export class TodoEmbeddableExample extends React.Component<Props, State> {
fullWidth
resize="horizontal"
data-test-subj="taskTodo"
onChange={ev => this.setState({ task: ev.target.value })}
onChange={(ev) => this.setState({ task: ev.target.value })}
/>
</EuiFormRow>
</EuiFlexItem>