Browse Source

feat: Added option to manually add text to Webpagebanner without translation key.

master
Denis Thiessen 5 months ago
parent
commit
da02c71f29
  1. 7
      src/components/webpage_container/WebpageBanner.jsx

7
src/components/webpage_container/WebpageBanner.jsx

@ -7,7 +7,12 @@ var bannerContent = "";
export default class WebpageBanner extends Component { export default class WebpageBanner extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
bannerContent = getTranslation(props.translationKey);
if (props.translationKey !== undefined) {
bannerContent = getTranslation(props.translationKey);
} else {
bannerContent = props.text;
}
} }
setBannerContent(content) { setBannerContent(content) {

Loading…
Cancel
Save