@infect/frontend
Version:
infect frontend
28 lines (23 loc) • 733 B
JSX
import { observer } from 'mobx-react';
import React from 'react';
export default class FilterList extends React.Component {
getLogoURL() {
const frontendConfig = this.props.tenantConfig.getConfig('frontend');
return frontendConfig &&
frontendConfig.userInterface &&
frontendConfig.userInterface.logoUrl;
}
render() {
return (
<React.Fragment>
{!this.getLogoURL() && null}
{this.getLogoURL() &&
<img
className="c-logo__vector-image"
src={this.getLogoURL()}
/>
}
</React.Fragment>
);
}
}