Skip to content

Commit

Permalink
Cleanup formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewvc committed Feb 28, 2020
1 parent 0b96a79 commit 03c3b4f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ const mapDispatchToProps = (dispatch: Dispatch<any>): DispatchProps => ({
},
});

export const MonitorStatusBar = connect<typeof mapStateToProps, typeof mapDispatchToProps, MonitorStatusBarProps, AppState>(
export const MonitorStatusBar = connect<
typeof mapStateToProps,
typeof mapDispatchToProps,
MonitorStatusBarProps,
AppState
>(
// @ts-ignore TODO fix this in a subsequent patch
mapStateToProps,
mapDispatchToProps
Expand Down
10 changes: 3 additions & 7 deletions x-pack/legacy/plugins/uptime/public/pages/monitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { EuiSpacer } from '@elastic/eui';
import React, { useContext, useState, useEffect } from 'react';
import { useParams } from 'react-router-dom';
import { ChromeBreadcrumb } from 'kibana/public';
import { connect, MapDispatchToPropsFunction, } from 'react-redux';
import { connect, MapDispatchToPropsFunction } from 'react-redux';
import { MonitorCharts, PingList } from '../components/functional';
import { UptimeRefreshContext, UptimeThemeContext } from '../contexts';
import { useUptimeTelemetry, useUrlParams, UptimePage } from '../hooks';
Expand Down Expand Up @@ -106,13 +106,9 @@ const mapDispatchToProps: MapDispatchToPropsFunction<DispatchProps, {}> = (dispa
getSelectedMonitor({
monitorId,
})
)
);
},
};
};


export const MonitorPage = connect(
mapStateToProps,
mapDispatchToProps,
)(MonitorPageComponent);
export const MonitorPage = connect(mapStateToProps, mapDispatchToProps)(MonitorPageComponent);

0 comments on commit 03c3b4f

Please sign in to comment.