seenByList.stories.js 747 B

12345678910111213141516171819202122232425262728293031323334353637
  1. import SeenByList from 'sentry/components/seenByList';
  2. const USER = {
  3. id: 1,
  4. name: 'Jane Bloggs',
  5. email: 'janebloggs@example.com',
  6. };
  7. export default {
  8. title: 'Components/Seen By',
  9. args: {
  10. avatarSize: 28,
  11. iconTooltip: 'icon tooltip message',
  12. maxVisibleAvatars: 5,
  13. },
  14. };
  15. export const Default = ({maxVisibleAvatars, avatarSize, iconTooltip}) => {
  16. const user = {...USER};
  17. return (
  18. <SeenByList
  19. seenBy={[user]}
  20. avatarSize={avatarSize}
  21. iconTooltip={iconTooltip}
  22. maxVisibleAvatars={maxVisibleAvatars}
  23. />
  24. );
  25. };
  26. Default.storyName = 'Seen By';
  27. Default.parameters = {
  28. docs: {
  29. description: {
  30. story: 'This displays a list of avatars but filters out the current user',
  31. },
  32. },
  33. };