Revert "add tradingview chart attribution link (#257)"
This reverts commit be0995af25
.
This commit is contained in:
parent
b43f2e6232
commit
a6082b92a0
|
@ -1,4 +1,4 @@
|
||||||
import { useEffect, useMemo, useRef, useState } from 'react'
|
import { useEffect, useRef, useState } from 'react'
|
||||||
import { useTheme } from 'next-themes'
|
import { useTheme } from 'next-themes'
|
||||||
import {
|
import {
|
||||||
widget,
|
widget,
|
||||||
|
@ -623,25 +623,7 @@ const TVChartContainer = () => {
|
||||||
}
|
}
|
||||||
}, [chartReady, openOrders, showOrderLines])
|
}, [chartReady, openOrders, showOrderLines])
|
||||||
|
|
||||||
const attributionUrl = useMemo(
|
return <div id={defaultProps.containerId} className="tradingview-chart" />
|
||||||
() =>
|
|
||||||
`https://tradingview.com/symbols/${defaultProps.symbol?.slice(0, -5)}USD`,
|
|
||||||
[defaultProps]
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
|
||||||
<>
|
|
||||||
<div id={defaultProps.containerId} className="tradingview-chart" />
|
|
||||||
<a
|
|
||||||
className="default-transition tiny-text flex justify-end px-3 py-1 text-th-fgd-4 hover:text-th-fgd-3"
|
|
||||||
href={attributionUrl}
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
target="_blank"
|
|
||||||
>
|
|
||||||
Chart by TradingView
|
|
||||||
</a>
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default TVChartContainer
|
export default TVChartContainer
|
||||||
|
|
|
@ -135,7 +135,7 @@ button.transition-none {
|
||||||
}
|
}
|
||||||
|
|
||||||
.tradingview-chart {
|
.tradingview-chart {
|
||||||
height: calc(100% - 24px);
|
display: contents;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Grid */
|
/* Grid */
|
||||||
|
|
Loading…
Reference in New Issue