Add Description to the source mappings overlay

pull/4068/head
Iris Scholten 2018-07-31 11:51:39 -07:00
parent 4d8a9e6c9c
commit 458c281c6a
1 changed files with 12 additions and 0 deletions

View File

@ -64,6 +64,7 @@ class ImportDashboardMappings extends Component<Props, State> {
public render() { public render() {
return ( return (
<> <>
{this.description}
{this.table} {this.table}
<button className="btn btn-sm btn-success" onClick={this.handleSubmit}> <button className="btn btn-sm btn-success" onClick={this.handleSubmit}>
Done Done
@ -76,6 +77,17 @@ class ImportDashboardMappings extends Component<Props, State> {
return <div data-test="no-mapping">No source mappings required</div> return <div data-test="no-mapping">No source mappings required</div>
} }
private get description(): JSX.Element {
const description =
'In order to ensure a smooth import you need to tell us how to match sources in the imported dashboard with your available sources. Selecting Dyanmic Source will allow the cell to use whatever source you are currently connected to instead of a specific source.'
return (
<div className="alert alert-primary">
<span className="icon octagon" />
<div className="alert-message">{description}</div>
</div>
)
}
private get table(): JSX.Element { private get table(): JSX.Element {
const {sourcesCells} = this.state const {sourcesCells} = this.state