Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Update to the render() method for Part IV of the Security Classification header.
public render(): React.ReactElement<IClassificationHeaderProps> {
// get the business impact from the state
let { businessImpact } = this.state;
var barType: MessageBarType;
switch (businessImpact) {
case "MBI":
barType = MessageBarType.warning;
break;
case "HBI":
barType = MessageBarType.severeWarning;
break;
default:
barType = MessageBarType.info;
}
return (
<MessageBar
messageBarType={barType}
>
This site is classified as {this.state.businessImpact}. <Link href="www.bing.com">Learn more about the proper handling procedures.</Link>
</MessageBar>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.