Browse Source

ref(ts): Remove legacy organization context from AccountSettingsLayout (#67522)

This was not being accessed
Evan Purkhiser 11 months ago
parent
commit
5867192f73
1 changed files with 0 additions and 11 deletions
  1. 0 11
      static/app/views/settings/account/accountSettingsLayout.tsx

+ 0 - 11
static/app/views/settings/account/accountSettingsLayout.tsx

@@ -2,7 +2,6 @@ import {Component} from 'react';
 
 import {fetchOrganizationDetails} from 'sentry/actionCreators/organizations';
 import type {Client} from 'sentry/api';
-import {SentryPropTypeValidators} from 'sentry/sentryPropTypeValidators';
 import type {Organization} from 'sentry/types';
 import withApi from 'sentry/utils/withApi';
 import withLatestContext from 'sentry/utils/withLatestContext';
@@ -15,16 +14,6 @@ type Props = React.ComponentProps<typeof SettingsLayout> & {
 };
 
 class AccountSettingsLayout extends Component<Props> {
-  static childContextTypes = {
-    organization: SentryPropTypeValidators.isObject,
-  };
-
-  getChildContext() {
-    return {
-      organization: this.props.organization,
-    };
-  }
-
   componentDidUpdate(prevProps: Props) {
     const {api, organization} = this.props;
     if (prevProps.organization === organization) {