Skip to content

Commit 1a9ea7f

Browse files
ref(js): Convert ProjectPerformanceContainer to a FC (#34624)
1 parent 52300f6 commit 1a9ea7f

File tree

1 file changed

+7
-11
lines changed
  • static/app/views/settings/projectPerformance

1 file changed

+7
-11
lines changed
Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import {Component} from 'react';
21
import {RouteComponentProps} from 'react-router';
32

43
import Feature from 'sentry/components/acl/feature';
54
import {Organization, Project} from 'sentry/types';
6-
import withOrganization from 'sentry/utils/withOrganization';
75

86
import ProjectPerformance from './projectPerformance';
97

@@ -12,14 +10,12 @@ type Props = RouteComponentProps<{orgId: string; projectId: string}, {}> & {
1210
project: Project;
1311
};
1412

15-
class ProjectPerformanceContainer extends Component<Props> {
16-
render() {
17-
return (
18-
<Feature features={['performance-view']}>
19-
<ProjectPerformance {...this.props} />
20-
</Feature>
21-
);
22-
}
13+
function ProjectPerformanceContainer(props: Props) {
14+
return (
15+
<Feature features={['performance-view']}>
16+
<ProjectPerformance {...props} />
17+
</Feature>
18+
);
2319
}
2420

25-
export default withOrganization(ProjectPerformanceContainer);
21+
export default ProjectPerformanceContainer;

0 commit comments

Comments
 (0)