From 59808022a7826aaf49bab4529eb8751a6639ab7a Mon Sep 17 00:00:00 2001 From: rshen91 Date: Tue, 12 Jan 2021 11:13:16 -0700 Subject: [PATCH] fix: create unique ids for dot icons --- src/components/__snapshots__/chart.test.tsx.snap | 2 +- src/components/icons/assets/dot.tsx | 5 +++-- src/components/legend/__snapshots__/legend.test.tsx.snap | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/components/__snapshots__/chart.test.tsx.snap b/src/components/__snapshots__/chart.test.tsx.snap index 75b1cc181a..fce65eefa4 100644 --- a/src/components/__snapshots__/chart.test.tsx.snap +++ b/src/components/__snapshots__/chart.test.tsx.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Chart should render the legend name test 1`] = `"
"`; +exports[`Chart should render the legend name test 1`] = `"
"`; diff --git a/src/components/icons/assets/dot.tsx b/src/components/icons/assets/dot.tsx index d9e99d0305..3c4321869e 100644 --- a/src/components/icons/assets/dot.tsx +++ b/src/components/icons/assets/dot.tsx @@ -29,13 +29,14 @@ export class DotIcon extends React.Component { } render() { + const { color } = this.props; return ( - + - + ); diff --git a/src/components/legend/__snapshots__/legend.test.tsx.snap b/src/components/legend/__snapshots__/legend.test.tsx.snap index 1eef6397b6..a64f4750d2 100644 --- a/src/components/legend/__snapshots__/legend.test.tsx.snap +++ b/src/components/legend/__snapshots__/legend.test.tsx.snap @@ -1,9 +1,9 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Legend #legendColorPicker should match snapshot after onChange is called 1`] = `"
  • "`; +exports[`Legend #legendColorPicker should match snapshot after onChange is called 1`] = `"
  • "`; -exports[`Legend #legendColorPicker should match snapshot after onClose is called 1`] = `"
  • "`; +exports[`Legend #legendColorPicker should match snapshot after onClose is called 1`] = `"
  • "`; exports[`Legend #legendColorPicker should render colorPicker when color is clicked 1`] = `"
    Custom Color Picker
    "`; -exports[`Legend #legendColorPicker should render colorPicker when color is clicked 2`] = `"
  • Custom Color Picker
  • "`; +exports[`Legend #legendColorPicker should render colorPicker when color is clicked 2`] = `"
  • Custom Color Picker
  • "`;