diff --git a/libs/candles-chart/src/lib/candles-chart.tsx b/libs/candles-chart/src/lib/candles-chart.tsx index abd873c9c..1dd9d4c87 100644 --- a/libs/candles-chart/src/lib/candles-chart.tsx +++ b/libs/candles-chart/src/lib/candles-chart.tsx @@ -1,5 +1,4 @@ import 'pennant/dist/style.css'; - import { Chart, ChartType, @@ -168,6 +167,11 @@ export const CandlesChartContainer = ({ chartType: chartType, overlays: overlays, studies: studies, + notEnoughDataText: ( + + {t('No data')} + + ), }} interval={interval} theme={theme} diff --git a/libs/market-depth/src/lib/depth-chart.tsx b/libs/market-depth/src/lib/depth-chart.tsx index b6127c2ba..d6ffa1876 100644 --- a/libs/market-depth/src/lib/depth-chart.tsx +++ b/libs/market-depth/src/lib/depth-chart.tsx @@ -6,6 +6,7 @@ import { addDecimal, getNumberFormat, useThemeSwitcher, + t, } from '@vegaprotocol/react-helpers'; import { marketDepthProvider } from './market-depth-provider'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; @@ -207,6 +208,11 @@ export const DepthChartContainer = ({ marketId }: DepthChartManagerProps) => { theme={theme} volumeFormat={volumeFormat} priceFormat={priceFormat} + notEnoughDataText={ + + {t('No data')} + + } /> )} diff --git a/package.json b/package.json index f300f906e..973275847 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "js-sha3": "^0.8.0", "lodash": "^4.17.21", "next": "12.2.3", - "pennant": "1.5.0", + "pennant": "1.6.0", "react": "18.2.0", "react-copy-to-clipboard": "^5.0.4", "react-dom": "18.2.0", diff --git a/yarn.lock b/yarn.lock index 8fbd567a4..8026c9610 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18111,10 +18111,10 @@ pend@~1.2.0: resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50" integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg== -pennant@1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.5.0.tgz#621be2352f4fb48f73e568a2dd62e902919c1543" - integrity sha512-Ula8T0nMLhqNaUO4uiBOwDgNnhW0mOLt+Nw9JzWOEE+kpWj31H0hXq8aI9eXRAcXL0RSjtKQOos8MAgfauvsBQ== +pennant@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.6.0.tgz#9c7d873527defba689439a18f2ff2f9aa5ababea" + integrity sha512-0eWZmFNaWMCYHj9C/+KgwFy8sf/dEkR2TilYrkoRgOVgziDFakojHSiNIwFrqYZFXH1HincYwS7PjKFtQkvrRA== dependencies: "@babel/runtime" "^7.13.10" "@d3fc/d3fc-technical-indicator" "^8.0.1"