feat(org): Added translation status page
This commit is contained in:
parent
7a4f47e50f
commit
a2b689e69a
8 changed files with 271 additions and 0 deletions
19
sites/shared/components/wrappers/chart.mjs
Normal file
19
sites/shared/components/wrappers/chart.mjs
Normal file
|
@ -0,0 +1,19 @@
|
|||
import { useState } from 'react'
|
||||
import * as echarts from 'echarts'
|
||||
import ReactECharts from 'echarts-for-react'
|
||||
import { Popout } from 'shared/components/popout.mjs'
|
||||
|
||||
echarts.registerTheme('light', {
|
||||
backgroundColor: 'transparent',
|
||||
})
|
||||
echarts.registerTheme('dark', {
|
||||
backgroundColor: 'transparent',
|
||||
})
|
||||
|
||||
export const ChartWrapper = ({ option = false, theme = 'light', h = 400 }) => {
|
||||
return option ? (
|
||||
<ReactECharts option={option} className="class_2" theme={theme} style={{ height: h }} />
|
||||
) : (
|
||||
<Popout loading>Loading chart...</Popout>
|
||||
)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue