mirror of https://github.com/jitsi/jitsi-meet
When callstats is not configured hide the button.pull/1283/head
parent
7fa17322a1
commit
0765c60d77
@ -0,0 +1,28 @@ |
||||
/* global config */ |
||||
import React, { Component } from 'react'; |
||||
|
||||
/** |
||||
* A Web Component which renders feedback button. |
||||
*/ |
||||
export class FeedbackButton extends Component { |
||||
|
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
* @returns {ReactElement} |
||||
*/ |
||||
render() { |
||||
|
||||
// if there is no callstats configured skip rendering
|
||||
if (!config.callStatsID) { |
||||
return null; |
||||
} |
||||
|
||||
return ( |
||||
<a |
||||
className = 'button icon-feedback' |
||||
id = 'feedbackButton' /> |
||||
); |
||||
} |
||||
} |
||||
@ -0,0 +1 @@ |
||||
export * from './FeedbackButton'; |
||||
@ -0,0 +1 @@ |
||||
export * from './components'; |
||||
Loading…
Reference in new issue