import {Fragment} from 'react'; import {browserHistory, RouteComponentProps} from 'react-router'; import AsyncView from 'sentry/views/asyncView'; import MonitorForm from './monitorForm'; import {Monitor} from './types'; type Props = AsyncView['props'] & RouteComponentProps<{orgId: string}, {}>; export default class CreateMonitor extends AsyncView { getTitle() { return `Monitors - ${this.props.params.orgId}`; } onSubmitSuccess = (data: Monitor) => { browserHistory.push(`/organizations/${this.props.params.orgId}/monitors/${data.id}/`); }; renderBody() { return (

New Monitor

); } }