u2fEnrolledDetails.stories.js 807 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import {action} from '@storybook/addon-actions';
  2. import U2fEnrolledDetails from 'sentry/views/settings/account/accountSecurity/components/u2fEnrolledDetails';
  3. export default {
  4. title: 'Components/Tables/U2fEnrolledDetails',
  5. };
  6. export const U2FEnrolledDetails = ({isEnrolled}) => (
  7. <U2fEnrolledDetails
  8. isEnrolled={isEnrolled}
  9. id="u2f"
  10. devices={[
  11. {
  12. name: 'Device 1',
  13. timestamp: +new Date(),
  14. },
  15. {
  16. name: 'Home Key',
  17. timestamp: +new Date(),
  18. },
  19. ]}
  20. onRemoveU2fDevice={action('On Remove Device')}
  21. />
  22. );
  23. U2FEnrolledDetails.storyName = 'U2fEnrolledDetails';
  24. U2FEnrolledDetails.args = {
  25. isEnrolled: true,
  26. };
  27. U2FEnrolledDetails.parameters = {
  28. docs: {
  29. description: {
  30. story: 'U2f details after enrollment',
  31. },
  32. },
  33. };