index.tsx 848 B

1234567891011121314151617181920212223242526272829
  1. import Feature from 'sentry/components/acl/feature';
  2. import FeatureDisabled from 'sentry/components/acl/featureDisabled';
  3. import {PanelAlert} from 'sentry/components/panels';
  4. import {t} from 'sentry/locale';
  5. import useOrganization from 'sentry/utils/useOrganization';
  6. import {ReleaseActivityList} from './releaseActivity';
  7. function ReleaseDetailsActivity() {
  8. const organization = useOrganization();
  9. return (
  10. <Feature
  11. features={['organizations:active-release-monitor-alpha']}
  12. organization={organization}
  13. renderDisabled={() => (
  14. <FeatureDisabled
  15. alert={PanelAlert}
  16. features={['organizations:active-release-monitor-alpha']}
  17. featureName={t('Active Release Details')}
  18. />
  19. )}
  20. >
  21. <ReleaseActivityList />
  22. </Feature>
  23. );
  24. }
  25. export default ReleaseDetailsActivity;