|
@ -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) { |
|
|