mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
apply prettier styles
This commit is contained in:
parent
64ad4f3f92
commit
bf04235dae
7130 changed files with 31393 additions and 37163 deletions
|
@ -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 (
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue