fix: fixed the trading chart load
This commit is contained in:
parent
e11875f74f
commit
8e4197a706
@ -2,8 +2,8 @@ import dynamic from 'next/dynamic'
|
|||||||
import Script from 'next/script'
|
import Script from 'next/script'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
|
|
||||||
import { CircularProgress } from 'components/CircularProgress'
|
|
||||||
import Card from 'components/Card'
|
import Card from 'components/Card'
|
||||||
|
import { CircularProgress } from 'components/CircularProgress'
|
||||||
|
|
||||||
const TVChartContainer = dynamic(
|
const TVChartContainer = dynamic(
|
||||||
() => import('components/Trade/TradeChart/TVChartContainer').then((mod) => mod.TVChartContainer),
|
() => import('components/Trade/TradeChart/TVChartContainer').then((mod) => mod.TVChartContainer),
|
||||||
@ -26,6 +26,9 @@ export default function TradeChart(props: Props) {
|
|||||||
onReady={() => {
|
onReady={() => {
|
||||||
setIsScriptReady(true)
|
setIsScriptReady(true)
|
||||||
}}
|
}}
|
||||||
|
onLoad={() => {
|
||||||
|
setIsScriptReady(true)
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
{isScriptReady ? (
|
{isScriptReady ? (
|
||||||
<TVChartContainer buyAsset={props.buyAsset} sellAsset={props.sellAsset} />
|
<TVChartContainer buyAsset={props.buyAsset} sellAsset={props.sellAsset} />
|
||||||
|
Loading…
Reference in New Issue
Block a user