Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
add ad result page; refactor some edit feature code (#62)
Browse files Browse the repository at this point in the history
* add ad result page; refactor some edit feature code

* address comments
  • Loading branch information
ylwu-amzn authored Apr 30, 2020
1 parent 27f5d40 commit aee03e8
Show file tree
Hide file tree
Showing 20 changed files with 1,071 additions and 407 deletions.
16 changes: 7 additions & 9 deletions public/pages/DetectorDetail/containers/DetectorDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import { useFetchMonitorInfo } from '../hooks/useFetchMonitorInfo';
import { MonitorCallout } from '../components/MonitorCallout/MonitorCallout';
import { DETECTOR_DETAIL_TABS } from '../utils/constants';
import { DetectorConfig } from '../../DetectorConfig/containers/DetectorConfig';
//import { AnomalyResults } from '../../DetectorResults/containers/AnomalyResults';
import { AnomalyResults } from '../../DetectorResults/containers/AnomalyResults';

export interface DetectorRouterProps {
detectorId?: string;
Expand Down Expand Up @@ -445,14 +445,12 @@ export const DetectorDetail = (props: DetectorDetailProps) => {
exact
path="/detectors/:detectorId/results"
render={props => (
// TODO: add Yaliang's changes back when he checks in AnomalyResults
// <AnomalyResults
// {...props}
// detectorId={detectorId}
// onStartDetector={() => handleStartAdJob(detectorId)}
// onSwitchToConfiguration={handleSwitchToConfigurationTab}
// />
<div></div>
<AnomalyResults
{...props}
detectorId={detectorId}
onStartDetector={() => handleStartAdJob(detectorId)}
onSwitchToConfiguration={handleSwitchToConfigurationTab}
/>
)}
/>
<Route
Expand Down
177 changes: 0 additions & 177 deletions public/pages/DetectorResults/List/List.tsx

This file was deleted.

111 changes: 0 additions & 111 deletions public/pages/DetectorResults/List/__tests__/List.test.tsx

This file was deleted.

Loading

0 comments on commit aee03e8

Please sign in to comment.