Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Mar 30, 2020
1 parent 7cca960 commit 28f8fbb
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 9 deletions.
3 changes: 1 addition & 2 deletions x-pack/legacy/plugins/uptime/public/pages/monitor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { UptimeRefreshContext } from '../contexts';
import { useUptimeTelemetry, useUrlParams, UptimePage } from '../hooks';
import { useTrackPageview } from '../../../../../plugins/observability/public';
import { MonitorStatusDetails } from '../components/connected';
import { Ping } from '../../common/graphql/types';
import { monitorStatusSelector } from '../state/selectors';
import { PageHeader } from './page_header';
import { useBreadcrumbs } from '../hooks/use_breadcrumbs';
Expand All @@ -32,7 +31,7 @@ export const MonitorPage: React.FC = () => {
const [selectedLocation, setSelectedLocation] = useState(undefined);
const [pingListIndex, setPingListIndex] = useState(0);

const selectedMonitor: Ping = useSelector(monitorStatusSelector);
const selectedMonitor = useSelector(monitorStatusSelector);

const sharedVariables = {
dateRangeStart,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,11 @@

import { takeLatest } from 'redux-saga/effects';
import {
getSelectedMonitorAction,
getSelectedMonitorActionSuccess,
getSelectedMonitorActionFail,
getMonitorStatusAction,
getMonitorStatusActionSuccess,
getMonitorStatusActionFail,
} from '../actions';
import { fetchSelectedMonitor, fetchMonitorStatus } from '../api';
import { fetchMonitorStatus } from '../api';
import { fetchEffectFactory } from './fetch_effect';

export function* fetchMonitorStatusEffect() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ describe('state selectors', () => {
},
monitorStatus: {
status: null,
monitor: null,
loading: false,
},
indexPattern: {
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/uptime/server/lib/requests/uptime_requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { Ping, PingResults } from '../../../../../legacy/plugins/uptime/common/g
import {
GetFilterBarParams,
GetLatestMonitorParams,
GetMonitorParams,
GetMonitorChartsParams,
GetMonitorDetailsParams,
GetMonitorLocationsParams,
Expand Down Expand Up @@ -39,7 +38,6 @@ export interface UptimeRequests {
getFilterBar: ESQ<GetFilterBarParams, OverviewFilters>;
getIndexPattern: ESQ<{}, {}>;
getLatestMonitor: ESQ<GetLatestMonitorParams, Ping>;
getMonitor: ESQ<GetMonitorParams, Ping>;
getMonitorDurationChart: ESQ<GetMonitorChartsParams, MonitorDurationResult>;
getMonitorDetails: ESQ<GetMonitorDetailsParams, MonitorDetails>;
getMonitorLocations: ESQ<GetMonitorLocationsParams, MonitorLocations>;
Expand Down

0 comments on commit 28f8fbb

Please sign in to comment.