Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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. }