refact: clean up dead code
This commit is contained in:
parent
c3aa1a4c40
commit
ce8500d02d
@ -48,7 +48,6 @@ class FileAccess {
|
|||||||
|
|
||||||
setFile = file => {
|
setFile = file => {
|
||||||
if (this.validateFileType(file)) this.file = file
|
if (this.validateFileType(file)) this.file = file
|
||||||
console.log(file.type)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
validateFileType= file => {
|
validateFileType= file => {
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import React, { Component } from 'react'
|
import React, { Component } from 'react'
|
||||||
import ChartJsDataset from '../../Models/Chart/ChartjsDataset'
|
|
||||||
import FocusChart from '../../Models/Chart/FocusChart'
|
import FocusChart from '../../Models/Chart/FocusChart'
|
||||||
import { Doughnut } from 'react-chartjs-2'
|
import { Doughnut } from 'react-chartjs-2'
|
||||||
import { Dropdown } from 'semantic-ui-react'
|
|
||||||
|
|
||||||
class ChartViewer extends Component {
|
class ChartViewer extends Component {
|
||||||
constructor () {
|
constructor () {
|
||||||
@ -38,27 +36,9 @@ class ChartViewer extends Component {
|
|||||||
return <Doughnut data={chart[chart.type]} width={600} height={600} />
|
return <Doughnut data={chart[chart.type]} width={600} height={600} />
|
||||||
}
|
}
|
||||||
|
|
||||||
// renderGroupByOptions = () => {
|
|
||||||
// const focusTable = this.focusTable.table
|
|
||||||
// if (!focusTable) return []
|
|
||||||
|
|
||||||
// const headers = focusTable.headers
|
|
||||||
// const options = headers.map(h => {
|
|
||||||
// return {key: h, text: h, value: h}
|
|
||||||
// })
|
|
||||||
// return options
|
|
||||||
// }
|
|
||||||
|
|
||||||
render = () => {
|
render = () => {
|
||||||
return (
|
return (
|
||||||
<div className='ChartViewer'>
|
<div className='ChartViewer'>
|
||||||
{/* <Dropdown
|
|
||||||
placeholder='Select Value to Report'
|
|
||||||
fluid
|
|
||||||
selection
|
|
||||||
options={this.state.headers}
|
|
||||||
onChange={this.handleGroupByChange}
|
|
||||||
/> */}
|
|
||||||
{this.renderChart()}
|
{this.renderChart()}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user