organizations.tsx 622 B

1234567891011121314151617181920212223242526272829303132
  1. import {Organization as OrganizationType} from 'sentry/types';
  2. import {Organization} from './organization';
  3. export function Organizations(
  4. params: Partial<OrganizationType> = {}
  5. ): OrganizationType[] {
  6. return [
  7. Organization({
  8. id: '1',
  9. name: 'test 1',
  10. slug: 'test 1',
  11. require2FA: false,
  12. status: {
  13. id: 'active',
  14. name: 'active',
  15. },
  16. ...params,
  17. }),
  18. Organization({
  19. id: '2',
  20. name: 'test 2',
  21. slug: 'test 2',
  22. require2FA: false,
  23. status: {
  24. id: 'active',
  25. name: 'active',
  26. },
  27. ...params,
  28. }),
  29. ];
  30. }