accountEmails.tsx 792 B

123456789101112131415161718192021222324252627
  1. import {JsonFormObject} from 'sentry/components/forms/types';
  2. import {t} from 'sentry/locale';
  3. // Export route to make these forms searchable by label/help
  4. export const route = '/settings/account/emails/';
  5. const formGroups: JsonFormObject[] = [
  6. {
  7. // Form "section"/"panel"
  8. title: t('Add Secondary Emails'),
  9. fields: [
  10. {
  11. name: 'email',
  12. type: 'string',
  13. // additional data/props that is related to rendering of form field rather than data
  14. label: t('Additional Email'),
  15. placeholder: t('e.g. secondary@example.com'),
  16. help: t('Designate an alternative email for this account'),
  17. saveOnBlur: false,
  18. saveMessage: t('Add this new email address to your account?'),
  19. },
  20. ],
  21. },
  22. ];
  23. export default formGroups;