index.tsx 658 B

12345678910111213141516171819
  1. import * as AppStoreConnectContext from 'sentry/components/projects/appStoreConnectContext';
  2. import {Organization, Project} from 'sentry/types';
  3. import UpdateAlert from './updateAlert';
  4. type Props = Pick<React.ComponentProps<typeof UpdateAlert>, 'className' | 'Wrapper'> & {
  5. organization: Organization;
  6. project?: Project;
  7. };
  8. function GlobalAppStoreConnectUpdateAlert({project, organization, ...rest}: Props) {
  9. return (
  10. <AppStoreConnectContext.Provider project={project} organization={organization}>
  11. <UpdateAlert project={project} {...rest} />
  12. </AppStoreConnectContext.Provider>
  13. );
  14. }
  15. export default GlobalAppStoreConnectUpdateAlert;