projectCreateServiceHook.tsx 937 B

1234567891011121314151617181920212223242526272829
  1. import {Fragment} from 'react';
  2. import {RouteComponentProps} from 'react-router';
  3. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  4. import {t} from 'sentry/locale';
  5. import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
  6. import ServiceHookSettingsForm from 'sentry/views/settings/project/serviceHookSettingsForm';
  7. type Props = RouteComponentProps<{orgId: string; projectId: string}, {}>;
  8. function ProjectCreateServiceHook({params}: Props) {
  9. const {orgId, projectId} = params;
  10. const title = t('Create Service Hook');
  11. return (
  12. <SentryDocumentTitle title={title}>
  13. <Fragment>
  14. <SettingsPageHeader title={title} />
  15. <ServiceHookSettingsForm
  16. orgId={orgId}
  17. projectId={projectId}
  18. initialData={{events: [], isActive: true}}
  19. />
  20. </Fragment>
  21. </SentryDocumentTitle>
  22. );
  23. }
  24. export default ProjectCreateServiceHook;