chore(trading): no data message in charts (#2816)
This commit is contained in:
parent
b9908003ba
commit
83af6e74f6
@ -1,5 +1,4 @@
|
|||||||
import 'pennant/dist/style.css';
|
import 'pennant/dist/style.css';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
Chart,
|
Chart,
|
||||||
ChartType,
|
ChartType,
|
||||||
@ -168,6 +167,11 @@ export const CandlesChartContainer = ({
|
|||||||
chartType: chartType,
|
chartType: chartType,
|
||||||
overlays: overlays,
|
overlays: overlays,
|
||||||
studies: studies,
|
studies: studies,
|
||||||
|
notEnoughDataText: (
|
||||||
|
<span className="text-xs text-center text-neutral-800 dark:text-neutral-200">
|
||||||
|
{t('No data')}
|
||||||
|
</span>
|
||||||
|
),
|
||||||
}}
|
}}
|
||||||
interval={interval}
|
interval={interval}
|
||||||
theme={theme}
|
theme={theme}
|
||||||
|
@ -6,6 +6,7 @@ import {
|
|||||||
addDecimal,
|
addDecimal,
|
||||||
getNumberFormat,
|
getNumberFormat,
|
||||||
useThemeSwitcher,
|
useThemeSwitcher,
|
||||||
|
t,
|
||||||
} from '@vegaprotocol/react-helpers';
|
} from '@vegaprotocol/react-helpers';
|
||||||
import { marketDepthProvider } from './market-depth-provider';
|
import { marketDepthProvider } from './market-depth-provider';
|
||||||
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
||||||
@ -207,6 +208,11 @@ export const DepthChartContainer = ({ marketId }: DepthChartManagerProps) => {
|
|||||||
theme={theme}
|
theme={theme}
|
||||||
volumeFormat={volumeFormat}
|
volumeFormat={volumeFormat}
|
||||||
priceFormat={priceFormat}
|
priceFormat={priceFormat}
|
||||||
|
notEnoughDataText={
|
||||||
|
<span className="text-xs text-center text-neutral-800 dark:text-neutral-200">
|
||||||
|
{t('No data')}
|
||||||
|
</span>
|
||||||
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</AsyncRenderer>
|
</AsyncRenderer>
|
||||||
|
@ -65,7 +65,7 @@
|
|||||||
"js-sha3": "^0.8.0",
|
"js-sha3": "^0.8.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"next": "12.2.3",
|
"next": "12.2.3",
|
||||||
"pennant": "1.5.0",
|
"pennant": "1.6.0",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"react-copy-to-clipboard": "^5.0.4",
|
"react-copy-to-clipboard": "^5.0.4",
|
||||||
"react-dom": "18.2.0",
|
"react-dom": "18.2.0",
|
||||||
|
@ -18111,10 +18111,10 @@ pend@~1.2.0:
|
|||||||
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
|
resolved "https://registry.yarnpkg.com/pend/-/pend-1.2.0.tgz#7a57eb550a6783f9115331fcf4663d5c8e007a50"
|
||||||
integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==
|
integrity sha512-F3asv42UuXchdzt+xXqfW1OGlVBe+mxa2mqI0pg5yAHZPvFmY3Y6drSf/GQ1A86WgWEN9Kzh/WrgKa6iGcHXLg==
|
||||||
|
|
||||||
pennant@1.5.0:
|
pennant@1.6.0:
|
||||||
version "1.5.0"
|
version "1.6.0"
|
||||||
resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.5.0.tgz#621be2352f4fb48f73e568a2dd62e902919c1543"
|
resolved "https://registry.yarnpkg.com/pennant/-/pennant-1.6.0.tgz#9c7d873527defba689439a18f2ff2f9aa5ababea"
|
||||||
integrity sha512-Ula8T0nMLhqNaUO4uiBOwDgNnhW0mOLt+Nw9JzWOEE+kpWj31H0hXq8aI9eXRAcXL0RSjtKQOos8MAgfauvsBQ==
|
integrity sha512-0eWZmFNaWMCYHj9C/+KgwFy8sf/dEkR2TilYrkoRgOVgziDFakojHSiNIwFrqYZFXH1HincYwS7PjKFtQkvrRA==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@babel/runtime" "^7.13.10"
|
"@babel/runtime" "^7.13.10"
|
||||||
"@d3fc/d3fc-technical-indicator" "^8.0.1"
|
"@d3fc/d3fc-technical-indicator" "^8.0.1"
|
||||||
|
Loading…
Reference in New Issue
Block a user