From c7df68f2554183aa5edc11d62f88406384d50db6 Mon Sep 17 00:00:00 2001 From: Severin Landolt <41927988+severinlandolt@users.noreply.github.com> Date: Sat, 7 Sep 2024 17:39:29 +0200 Subject: [PATCH] fix: remove console info (#1131) --- src/components/chart-elements/AreaChart/AreaChart.tsx | 6 ------ src/components/chart-elements/BarChart/BarChart.tsx | 5 ----- src/components/chart-elements/DonutChart/DonutChart.tsx | 6 ------ src/components/chart-elements/LineChart/LineChart.tsx | 6 ------ src/components/icon-elements/Badge/Badge.tsx | 6 ------ src/components/input-elements/Button/Button.tsx | 6 ------ src/components/input-elements/Calendar/Calendar.tsx | 5 ----- src/components/input-elements/DatePicker/DatePicker.tsx | 6 ------ .../input-elements/DateRangePicker/DateRangePicker.tsx | 6 ------ src/components/input-elements/Select/Select.tsx | 6 ------ src/components/input-elements/Switch/Switch.tsx | 6 ------ src/components/input-elements/Tabs/TabGroup.tsx | 5 ----- src/components/input-elements/TextInput/TextInput.tsx | 5 ----- src/components/input-elements/Textarea/Textarea.tsx | 5 ----- src/components/layout-elements/Accordion/Accordion.tsx | 5 ----- src/components/layout-elements/Card/Card.tsx | 5 ----- src/components/layout-elements/Dialog/Dialog.tsx | 5 ----- src/components/layout-elements/Divider/Divider.tsx | 5 ----- src/components/list-elements/Table/Table.tsx | 5 ----- src/components/text-elements/Callout/Callout.tsx | 5 ----- src/components/util-elements/Tooltip/Tooltip.tsx | 5 ----- src/components/vis-elements/BarList/BarList.tsx | 5 ----- 22 files changed, 119 deletions(-) diff --git a/src/components/chart-elements/AreaChart/AreaChart.tsx b/src/components/chart-elements/AreaChart/AreaChart.tsx index 80450104a..5390f95cb 100644 --- a/src/components/chart-elements/AreaChart/AreaChart.tsx +++ b/src/components/chart-elements/AreaChart/AreaChart.tsx @@ -139,12 +139,6 @@ const AreaChart = React.forwardRef((props, ref) } setActiveDot(undefined); } - - if (process.env.NODE_ENV === "development") { - console.info( - "The AreaChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/area-chart (This is only shown in development)", - ); - } return (
diff --git a/src/components/chart-elements/BarChart/BarChart.tsx b/src/components/chart-elements/BarChart/BarChart.tsx index af24f0145..6aa86f79c 100644 --- a/src/components/chart-elements/BarChart/BarChart.tsx +++ b/src/components/chart-elements/BarChart/BarChart.tsx @@ -144,11 +144,6 @@ const BarChart = React.forwardRef((props, ref) => setActiveBar(undefined); } const yAxisDomain = getYAxisDomain(autoMinValue, minValue, maxValue); - if (process.env.NODE_ENV === "development") { - console.info( - "The BarChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/bar-chart (This is only shown in development)", - ); - } return (
diff --git a/src/components/chart-elements/DonutChart/DonutChart.tsx b/src/components/chart-elements/DonutChart/DonutChart.tsx index fbb865b0a..a3e0de11b 100644 --- a/src/components/chart-elements/DonutChart/DonutChart.tsx +++ b/src/components/chart-elements/DonutChart/DonutChart.tsx @@ -124,12 +124,6 @@ const DonutChart = React.forwardRef((props, ref } }, [activeIndex]); - if (process.env.NODE_ENV === "development") { - console.info( - "The DonutChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/donut-chart (This is only shown in development)", - ); - } - return (
diff --git a/src/components/chart-elements/LineChart/LineChart.tsx b/src/components/chart-elements/LineChart/LineChart.tsx index c66cb2b86..d3c0f7cd5 100644 --- a/src/components/chart-elements/LineChart/LineChart.tsx +++ b/src/components/chart-elements/LineChart/LineChart.tsx @@ -133,12 +133,6 @@ const LineChart = React.forwardRef((props, ref) setActiveDot(undefined); } - if (process.env.NODE_ENV === "development") { - console.info( - "The LineChart is also available as a copy-and-paste component. Visit https://tremor.so/docs/visualizations/line-chart (This is only shown in development)", - ); - } - return (
diff --git a/src/components/icon-elements/Badge/Badge.tsx b/src/components/icon-elements/Badge/Badge.tsx index 6d73e6089..bd0e1e52e 100644 --- a/src/components/icon-elements/Badge/Badge.tsx +++ b/src/components/icon-elements/Badge/Badge.tsx @@ -29,12 +29,6 @@ const Badge = React.forwardRef((props, ref) => { const { tooltipProps, getReferenceProps } = useTooltip(); - if (process.env.NODE_ENV === "development") { - console.info( - "The Badge is also available as a copy-and-paste component. Visit https://tremor.so/docs/ui/badge (This is only shown in development)", - ); - } - return ( ((props, ref) => toggleTransition(loading); }, [loading]); - if (process.env.NODE_ENV === "development") { - console.info( - "The Button is also available as a copy-and-paste component. Visit https://tremor.so/docs/ui/button (This is only shown in development)", - ); - } - return ( // eslint-disable-next-line react/button-has-type