|
@ -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); |
|
|
|
|
|
|
|
|
|
|
|
if (props.translationKey !== undefined) { |
|
|
bannerContent = getTranslation(props.translationKey); |
|
|
bannerContent = getTranslation(props.translationKey); |
|
|
|
|
|
} else { |
|
|
|
|
|
bannerContent = props.text; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
setBannerContent(content) { |
|
|
setBannerContent(content) { |
|
|