您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

actions.tsx 615B

1234567891011121314151617181920212223242526272829
  1. import { HIDE_TOOLTIP, SHOW_TOOLTIP } from './actionTypes';
  2. /**
  3. * Set tooltip state to visible.
  4. *
  5. * @param {string} content - The content of the tooltip.
  6. * Used as unique identifier for tooltip.
  7. * @returns {Object}
  8. */
  9. export function showTooltip(content: string) {
  10. return {
  11. type: SHOW_TOOLTIP,
  12. content
  13. };
  14. }
  15. /**
  16. * Set tooltip state to hidden.
  17. *
  18. * @param {string} content - The content of the tooltip.
  19. * Used as unique identifier for tooltip.
  20. * @returns {Object}
  21. */
  22. export function hideTooltip(content: string) {
  23. return {
  24. type: HIDE_TOOLTIP,
  25. content
  26. };
  27. }