form-old-fields.stories.js 577 B

1234567891011121314151617181920212223242526
  1. import {
  2. BooleanField,
  3. Form as LegacyForm,
  4. PasswordField,
  5. } from 'sentry/components/deprecatedforms';
  6. export default {
  7. title: 'Deprecated/Fields',
  8. };
  9. export const _PasswordField = () => (
  10. <LegacyForm>
  11. <PasswordField hasSavedValue name="password" label="password" />
  12. </LegacyForm>
  13. );
  14. _PasswordField.storyName = 'PasswordField';
  15. export const _BooleanField = () => (
  16. <LegacyForm>
  17. <BooleanField name="field" />
  18. <BooleanField name="disabled-field" disabled disabledReason="This is off." />
  19. </LegacyForm>
  20. );
  21. _BooleanField.storyName = 'BooleanField';