diff --git a/dashboard/src/components/Card.js b/dashboard/src/components/Card.js index 2c42f3f4b..222e4b4e2 100644 --- a/dashboard/src/components/Card.js +++ b/dashboard/src/components/Card.js @@ -1,10 +1,12 @@ import React from 'react'; import HelpButtonAndModal from './HelpButtonAndModal'; -const Card = ({ title, count, unit, children, countId, dataTestId, help }) => { +const Card = ({ title, count, unit, children, countId, dataTestId, help, onClick = () => null }) => { return ( <> -
diff --git a/dashboard/src/scenes/stats/Blocks.js b/dashboard/src/scenes/stats/Blocks.js
index 663e0f50a..b5c3f5021 100644
--- a/dashboard/src/scenes/stats/Blocks.js
+++ b/dashboard/src/scenes/stats/Blocks.js
@@ -24,10 +24,10 @@ export const BlockDateWithTime = ({ data, field, help }) => {
const twoDecimals = (number) => Math.round(number * 100) / 100;
-export const BlockTotal = ({ title, unit, data, field, help }) => {
+export const BlockTotal = ({ title, unit, data, field, help, onClick = () => null }) => {
try {
if (!data.length) {
- return