Skip to content

Commit f3ca36a

Browse files
committed
index.tsx: init props
1 parent 1007c2a commit f3ca36a

File tree

1 file changed

+10
-2
lines changed
  • src/sentry/static/sentry/app/views/organizationEventsV2

1 file changed

+10
-2
lines changed

src/sentry/static/sentry/app/views/organizationEventsV2/index.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,22 @@ import EventDetails from './eventDetails';
1717
import {ALL_VIEWS} from './data';
1818
import {getCurrentView} from './utils';
1919

20-
export default class OrganizationEventsV2 extends React.Component {
20+
type Props = {
21+
organization: any;
22+
location: any;
23+
router: any;
24+
// TODO: what is this?
25+
params: any;
26+
};
27+
28+
export default class OrganizationEventsV2 extends React.Component<Props> {
2129
static propTypes = {
2230
organization: SentryTypes.Organization.isRequired,
2331
location: PropTypes.object.isRequired,
2432
router: PropTypes.object.isRequired,
2533
};
2634

27-
renderTabs() {
35+
renderTabs(): React.ReactNode {
2836
const {organization} = this.props;
2937
const currentView = getCurrentView(this.props.location.query.view);
3038

0 commit comments

Comments
 (0)