Browse Source

ref(js): Remove unnecessary AsyncComponent props (#50034)

Evan Purkhiser 1 year ago
parent
commit
66807215c4

+ 1 - 2
static/app/components/group/externalIssueActions.tsx

@@ -3,7 +3,6 @@ import styled from '@emotion/styled';
 
 import {addErrorMessage, addSuccessMessage} from 'sentry/actionCreators/indicator';
 import {openModal} from 'sentry/actionCreators/modal';
-import AsyncComponent from 'sentry/components/asyncComponent';
 import IssueSyncListElement from 'sentry/components/issueSyncListElement';
 import {t} from 'sentry/locale';
 import {space} from 'sentry/styles/space';
@@ -16,7 +15,7 @@ import IntegrationItem from 'sentry/views/settings/organizationIntegrations/inte
 
 import ExternalIssueForm from './externalIssueForm';
 
-type Props = AsyncComponent['props'] & {
+type Props = {
   configurations: GroupIntegration[];
   group: Group;
   onChange: (onSuccess?: () => void, onError?: () => void) => void;

+ 1 - 7
static/app/views/monitors/create.tsx

@@ -4,20 +4,14 @@ import {browserHistory} from 'react-router';
 import Breadcrumbs from 'sentry/components/breadcrumbs';
 import * as Layout from 'sentry/components/layouts/thirds';
 import {t} from 'sentry/locale';
-import {Organization} from 'sentry/types';
 import useOrganization from 'sentry/utils/useOrganization';
 import {normalizeUrl} from 'sentry/utils/withDomainRequired';
-import AsyncView from 'sentry/views/asyncView';
 
 import CronsFeedbackButton from './components/cronsFeedbackButton';
 import MonitorForm from './components/monitorForm';
 import {Monitor} from './types';
 
-type Props = AsyncView['props'] & {
-  organization: Organization;
-};
-
-function CreateMonitor({}: Props) {
+function CreateMonitor() {
   const {slug: orgSlug} = useOrganization();
 
   function onSubmitSuccess(data: Monitor) {

+ 1 - 2
static/app/views/organizationStats/teamInsights/teamMisery.tsx

@@ -3,7 +3,6 @@ import {css} from '@emotion/react';
 import styled from '@emotion/styled';
 import {Location} from 'history';
 
-import AsyncComponent from 'sentry/components/asyncComponent';
 import {Button} from 'sentry/components/button';
 import {DateTimeObject} from 'sentry/components/charts/utils';
 import CollapsePanel, {COLLAPSE_COUNT} from 'sentry/components/collapsePanel';
@@ -175,7 +174,7 @@ function TeamMisery({
   );
 }
 
-type Props = AsyncComponent['props'] & {
+type Props = {
   location: Location;
   organization: Organization;
   projects: Project[];