index.tsx 714 B

12345678910111213141516171819202122232425
  1. import {Component} from 'react';
  2. import {RouteComponentProps} from 'react-router';
  3. import Feature from 'sentry/components/acl/feature';
  4. import {Organization, Project} from 'sentry/types';
  5. import withOrganization from 'sentry/utils/withOrganization';
  6. import ProjectPerformance from './projectPerformance';
  7. type Props = RouteComponentProps<{orgId: string; projectId: string}, {}> & {
  8. organization: Organization;
  9. project: Project;
  10. };
  11. class ProjectPerformanceContainer extends Component<Props> {
  12. render() {
  13. return (
  14. <Feature features={['performance-view']}>
  15. <ProjectPerformance {...this.props} />
  16. </Feature>
  17. );
  18. }
  19. }
  20. export default withOrganization(ProjectPerformanceContainer);