1
0
Fork 0

feat(org): Added translation status page

This commit is contained in:
Joost De Cock 2023-07-05 20:58:30 +02:00
parent 7a4f47e50f
commit a2b689e69a
8 changed files with 271 additions and 0 deletions

View 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>
)
}