style: hide save as image button when not chart
This commit is contained in:
parent
9200d12f0c
commit
e61c8e351b
@ -52,7 +52,7 @@ class ChartViewer extends Component {
|
|||||||
return (
|
return (
|
||||||
<div className='ChartViewer'>
|
<div className='ChartViewer'>
|
||||||
{this.renderChart()}
|
{this.renderChart()}
|
||||||
<Button onClick={this.saveChart}>Save As Image</Button>
|
{ this.state.chart ? <Button onClick={this.saveChart}>Save As Image</Button> : '' }
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user