diff --git a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetriLineChart/CustomMetriLineChart.tsx b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetriLineChart/CustomMetriLineChart.tsx index 198afb088..4da7631fa 100644 --- a/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetriLineChart/CustomMetriLineChart.tsx +++ b/frontend/app/components/Dashboard/Widgets/CustomMetricsWidgets/CustomMetriLineChart/CustomMetriLineChart.tsx @@ -31,9 +31,10 @@ function CustomMetriLineChart(props: Props) { Styles.tickFormatter(val)} label={{ - ...Styles.axisLabelLeft, - value: "Number of Sessions" + ...Styles.axisLabelLeft, + value: "Number of Sessions" }} /> diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/BreakdownOfLoadedResources/BreakdownOfLoadedResources.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/BreakdownOfLoadedResources/BreakdownOfLoadedResources.tsx index fd38e2a55..73a8fd46a 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/BreakdownOfLoadedResources/BreakdownOfLoadedResources.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/BreakdownOfLoadedResources/BreakdownOfLoadedResources.tsx @@ -33,6 +33,7 @@ function BreakdownOfLoadedResources(props: Props) { {...Styles.yaxis} allowDecimals={false} label={{ ...Styles.axisLabelLeft, value: "Number of Resources" }} + tickFormatter={val => Styles.tickFormatter(val)} /> diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByOrigin/ErrorsByOrigin.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByOrigin/ErrorsByOrigin.tsx index d7aefebd0..f50859051 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByOrigin/ErrorsByOrigin.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByOrigin/ErrorsByOrigin.tsx @@ -33,6 +33,7 @@ function ErrorsByOrigin(props: Props) { /> Styles.tickFormatter(val)} label={{ ...Styles.axisLabelLeft, value: "Number of Errors" }} allowDecimals={false} /> diff --git a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByType/ErrorsByType.tsx b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByType/ErrorsByType.tsx index 23a6fda45..8d01941c8 100644 --- a/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByType/ErrorsByType.tsx +++ b/frontend/app/components/Dashboard/Widgets/PredefinedWidgets/ErrorsByType/ErrorsByType.tsx @@ -32,6 +32,7 @@ function ErrorsByType(props: Props) { /> Styles.tickFormatter(val)} label={{ ...Styles.axisLabelLeft, value: "Number of Errors" }} allowDecimals={false} /> diff --git a/frontend/app/components/ui/Pagination/Pagination.tsx b/frontend/app/components/ui/Pagination/Pagination.tsx index a915feee0..203213c90 100644 --- a/frontend/app/components/ui/Pagination/Pagination.tsx +++ b/frontend/app/components/ui/Pagination/Pagination.tsx @@ -4,6 +4,7 @@ import { Icon } from 'UI' import cn from 'classnames' import { debounce } from 'App/utils'; import { Tooltip } from 'react-tippy'; +import { numberWithCommas } from 'App/utils'; interface Props { page: number totalPages: number @@ -57,7 +58,7 @@ export default function Pagination(props: Props) { onChange={(e) => changePage(parseInt(e.target.value))} /> of - {totalPages} + {numberWithCommas(totalPages)}