Commit 64c97f7e authored by Lint Action's avatar Lint Action

Fix code style issues with ESLint

parent f3c51357
...@@ -8,9 +8,7 @@ ...@@ -8,9 +8,7 @@
"jsx": true "jsx": true
} }
}, },
"ignorePatterns": [ "ignorePatterns": ["node_modules/**/*"],
"node_modules/**/*"
],
"settings": { "settings": {
"react": { "react": {
"version": "detect" "version": "detect"
......
...@@ -78,28 +78,28 @@ const LineChart = ({ ...@@ -78,28 +78,28 @@ const LineChart = ({
layout: { layout: {
backgroundColor: 'transparent', backgroundColor: 'transparent',
textColor: textColor, textColor: textColor,
fontFamily: 'Inter', fontFamily: 'Inter'
}, },
rightPriceScale: { rightPriceScale: {
scaleMargins: { scaleMargins: {
top: 0.1, top: 0.1,
bottom: 0.1, bottom: 0.1
}, },
borderVisible: false, borderVisible: false
}, },
timeScale: { timeScale: {
borderVisible: false, borderVisible: false
}, },
watermark: { watermark: {
color: 'rgba(0, 0, 0, 0)', color: 'rgba(0, 0, 0, 0)'
}, },
grid: { grid: {
horzLines: { horzLines: {
visible: false, visible: false
}, },
vertLines: { vertLines: {
visible: false, visible: false
}, }
}, },
crosshair: { crosshair: {
horzLine: { horzLine: {
...@@ -107,16 +107,16 @@ const LineChart = ({ ...@@ -107,16 +107,16 @@ const LineChart = ({
style: 3, style: 3,
width: 1, width: 1,
color: '#505050', color: '#505050',
labelBackgroundColor: color, labelBackgroundColor: color
}, },
vertLine: { vertLine: {
visible: true, visible: true,
style: 3, style: 3,
width: 1, width: 1,
color: '#505050', color: '#505050',
labelBackgroundColor: color, labelBackgroundColor: color
}, }
}, }
}) })
const series = chart.addAreaSeries({ const series = chart.addAreaSeries({
...@@ -124,13 +124,13 @@ const LineChart = ({ ...@@ -124,13 +124,13 @@ const LineChart = ({
topColor: darken(0.4, color), topColor: darken(0.4, color),
bottomColor: theme.bg1, bottomColor: theme.bg1,
lineWidth: 2, lineWidth: 2,
priceLineVisible: false, priceLineVisible: false
}) })
series.setData(data) series.setData(data)
// update the title when hovering on the chart // update the title when hovering on the chart
chart.subscribeCrosshairMove(function (param) { chart.subscribeCrosshairMove(function(param) {
if ( if (
chartRef?.current && chartRef?.current &&
(param === undefined || (param === undefined ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment