diff --git a/src/views/components/ledger-chart-amounts/ledger-chart-amounts.js b/src/views/components/ledger-chart-amounts/ledger-chart-amounts.js
index 979ab297..1142e12d 100644
--- a/src/views/components/ledger-chart-amounts/ledger-chart-amounts.js
+++ b/src/views/components/ledger-chart-amounts/ledger-chart-amounts.js
@@ -164,7 +164,12 @@ export default function LedgerChartAmounts({ data, isLoading }) {
echarts={echarts}
option={option}
showLoading={isLoading}
- loadingOption={{ maskColor: 'rgba(255, 255, 255, 0)', text: '' }}
+ loadingOption={{
+ maskColor: 'rgba(255, 255, 255, 0)',
+ text: '',
+ spinnerRadius: 24,
+ lineWidth: 2
+ }}
style={{ width: '100%', height: '600px' }}
/>
diff --git a/src/views/components/ledger-chart-blocks/ledger-chart-blocks.js b/src/views/components/ledger-chart-blocks/ledger-chart-blocks.js
index b56fd5c2..52ea98a4 100644
--- a/src/views/components/ledger-chart-blocks/ledger-chart-blocks.js
+++ b/src/views/components/ledger-chart-blocks/ledger-chart-blocks.js
@@ -25,6 +25,8 @@ echarts.use([
export default function LedgerChartBlocks({ data, isLoading }) {
const option = {
grid: {
+ left: '3%',
+ right: '4%',
containLabel: true
},
legend: {
@@ -142,8 +144,13 @@ export default function LedgerChartBlocks({ data, isLoading }) {
echarts={echarts}
option={option}
showLoading={isLoading}
- loadingOption={{ maskColor: 'rgba(255, 255, 255, 0)', text: '' }}
- style={{ width: '100%', height: '400px' }}
+ loadingOption={{
+ maskColor: 'rgba(255, 255, 255, 0)',
+ text: '',
+ spinnerRadius: 10,
+ lineWidth: 2
+ }}
+ style={{ width: '100%', height: '600px' }}
/>
diff --git a/src/views/components/ledger-chart-usd-transferred/ledger-chart-usd-transferred.js b/src/views/components/ledger-chart-usd-transferred/ledger-chart-usd-transferred.js
index 90e7e190..654589a3 100644
--- a/src/views/components/ledger-chart-usd-transferred/ledger-chart-usd-transferred.js
+++ b/src/views/components/ledger-chart-usd-transferred/ledger-chart-usd-transferred.js
@@ -29,6 +29,8 @@ export default function LedgerUSDTransferred({ data, isLoading }) {
const option = {
grid: {
+ left: '3%',
+ right: '4%',
containLabel: true
},
legend: {
@@ -126,8 +128,13 @@ export default function LedgerUSDTransferred({ data, isLoading }) {
echarts={echarts}
option={option}
showLoading={isLoading}
- loadingOption={{ maskColor: 'rgba(255, 255, 255, 0)', text: '' }}
- style={{ width: '100%', height: '400px' }}
+ loadingOption={{
+ maskColor: 'rgba(255, 255, 255, 0)',
+ text: '',
+ spinnerRadius: 24,
+ lineWidth: 2
+ }}
+ style={{ width: '100%', height: '600px' }}
/>
diff --git a/src/views/components/ledger-chart-volume/ledger-chart-volume.js b/src/views/components/ledger-chart-volume/ledger-chart-volume.js
index 852ce9f4..1ad738f4 100644
--- a/src/views/components/ledger-chart-volume/ledger-chart-volume.js
+++ b/src/views/components/ledger-chart-volume/ledger-chart-volume.js
@@ -43,6 +43,8 @@ export default function LedgerChartVolume({ data, isLoading }) {
const option = {
grid: {
+ left: '3%',
+ right: '4%',
containLabel: true
},
legend: {
@@ -144,8 +146,13 @@ export default function LedgerChartVolume({ data, isLoading }) {
echarts={echarts}
option={option}
showLoading={isLoading}
- loadingOption={{ maskColor: 'rgba(255, 255, 255, 0)', text: '' }}
- style={{ width: '100%', height: '400px' }}
+ loadingOption={{
+ maskColor: 'rgba(255, 255, 255, 0)',
+ text: '',
+ spinnerRadius: 24,
+ lineWidth: 2
+ }}
+ style={{ width: '100%', height: '600px' }}
/>
diff --git a/src/views/pages/ledger/ledger.js b/src/views/pages/ledger/ledger.js
index 547948b0..c0e7faf2 100644
--- a/src/views/pages/ledger/ledger.js
+++ b/src/views/pages/ledger/ledger.js
@@ -1,4 +1,4 @@
-import React from 'react'
+import React, { useState, useEffect } from 'react'
import PropTypes from 'prop-types'
import Tabs from '@mui/material/Tabs'
import Tab from '@mui/material/Tab'
@@ -29,82 +29,72 @@ TabPanel.propTypes = {
index: PropTypes.number
}
-export default class LedgerPage extends React.Component {
- constructor(props) {
- super(props)
+export default function LedgerPage({ load, data, isLoading }) {
+ const [value, setValue] = useState(0)
- this.state = {
- value: 0
- }
- }
-
- handleChange = (event, value) => {
- this.setState({ value })
- }
+ useEffect(() => {
+ load()
+ }, [])
- componentDidMount() {
- this.props.load()
+ const handleChange = (event, value) => {
+ setValue(value)
}
- render() {
- const { data, isLoading } = this.props
-
- return (
- <>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- >
- )
- }
+ return (
+ <>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ >
+ )
}
LedgerPage.propTypes = {