You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

FeedbackButton.web.js 589B

12345678910111213141516171819202122232425262728
  1. /* global config */
  2. import React, { Component } from 'react';
  3. /**
  4. * A Web Component which renders feedback button.
  5. */
  6. export class FeedbackButton extends Component {
  7. /**
  8. * Implements React's {@link Component#render()}.
  9. *
  10. * @inheritdoc
  11. * @returns {ReactElement}
  12. */
  13. render() {
  14. // if there is no callstats configured skip rendering
  15. if (!config.callStatsID) {
  16. return null;
  17. }
  18. return (
  19. <a
  20. className = 'button icon-feedback'
  21. id = 'feedbackButton' />
  22. );
  23. }
  24. }