mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fixing minor light theme issues (#744)
* Cluster Menu scrolling & tooltip fixes Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Removing forgotten console.log() Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Fix Landing Page in light theme Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Updating Chart on every componentDidUpdate Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
1 parent
a12aa8a04f
commit
886fba136a
5 files changed
+51
-23
No files matched your search
@@ -63,14 +63,14 @@ export class Chart extends React.Component<ChartProps> {
|
||||
this.renderChart()
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps: ChartProps) {
|
||||
const { data, showChart, redraw } = this.props
|
||||
componentDidUpdate() {
|
||||
const { showChart, redraw } = this.props
|
||||
if (redraw) {
|
||||
this.chart.destroy()
|
||||
this.renderChart()
|
||||
return
|
||||
}
|
||||
if (!isEqual(prevProps.data, data) && showChart) {
|
||||
if (showChart) {
|
||||
if (!this.chart) this.renderChart()
|
||||
else this.updateChart()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user