newAuthToken.tsx 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import EmptyMessage from 'sentry/components/emptyMessage';
  2. import ExternalLink from 'sentry/components/links/externalLink';
  3. import {Panel, PanelBody, PanelHeader} from 'sentry/components/panels';
  4. import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle';
  5. import {t, tct} from 'sentry/locale';
  6. import {Organization} from 'sentry/types';
  7. import withOrganization from 'sentry/utils/withOrganization';
  8. import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader';
  9. import TextBlock from 'sentry/views/settings/components/text/textBlock';
  10. export function OrganizationAuthTokensNewAuthToken(_props: {organization: Organization}) {
  11. return (
  12. <div>
  13. <SentryDocumentTitle title={t('Create New Auth Token')} />
  14. <SettingsPageHeader title={t('Create New Auth Token')} />
  15. <TextBlock>
  16. {t(
  17. "Authentication tokens allow you to perform actions against the Sentry API on behalf of your organization. They're the easiest way to get started using the API."
  18. )}
  19. </TextBlock>
  20. <TextBlock>
  21. {tct(
  22. 'For more information on how to use the web API, see our [link:documentation].',
  23. {
  24. link: <ExternalLink href="https://docs.sentry.io/api/" />,
  25. }
  26. )}
  27. </TextBlock>
  28. <Panel>
  29. <PanelHeader>{t('Create New Auth Token')}</PanelHeader>
  30. <PanelBody>
  31. <EmptyMessage>Coming soon</EmptyMessage>
  32. </PanelBody>
  33. </Panel>
  34. </div>
  35. );
  36. }
  37. export default withOrganization(OrganizationAuthTokensNewAuthToken);