refact: clean up dead code

This commit is contained in:
ysandler 2020-08-06 19:07:00 -05:00 committed by Joshua Shoemaker
parent c3aa1a4c40
commit ce8500d02d
2 changed files with 0 additions and 21 deletions

View File

@ -48,7 +48,6 @@ class FileAccess {
setFile = file => {
if (this.validateFileType(file)) this.file = file
console.log(file.type)
}
validateFileType= file => {

View File

@ -1,8 +1,6 @@
import React, { Component } from 'react'
import ChartJsDataset from '../../Models/Chart/ChartjsDataset'
import FocusChart from '../../Models/Chart/FocusChart'
import { Doughnut } from 'react-chartjs-2'
import { Dropdown } from 'semantic-ui-react'
class ChartViewer extends Component {
constructor () {
@ -38,27 +36,9 @@ class ChartViewer extends Component {
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 = () => {
return (
<div className='ChartViewer'>
{/* <Dropdown
placeholder='Select Value to Report'
fluid
selection
options={this.state.headers}
onChange={this.handleGroupByChange}
/> */}
{this.renderChart()}
</div>
)