Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Afani97 committed Aug 7, 2023
1 parent 501db60 commit 8d2f14d
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions frontend/src/Components/Charts/UseOfForce/UseOfForce.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import toTitleCase from '../../../util/toTitleCase';
import useOfficerId from '../../../Hooks/useOfficerId';
import GroupedBar from '../ChartPrimitives/GroupedBar';
import Pie from '../ChartPrimitives/Pie';
import MonthRangePicker from '../../Elements/MonthRangePicker';

function UseOfForce(props) {
const { agencyId, showCompare } = props;
Expand All @@ -39,8 +38,8 @@ function UseOfForce(props) {
const [chartState] = useDataset(agencyId, USE_OF_FORCE);

const [year, setYear] = useState(YEARS_DEFAULT);
const [pickerActive, setPickerActive] = useState(null);
const [pickerXAxis, setPickerXAxis] = useState(null);
const [pickerActive] = useState(null);
const [pickerXAxis] = useState(null);

const [ethnicGroupKeys, setEthnicGroupKeys] = useState(() =>
STATIC_LEGEND_KEYS.map((k) => ({ ...k }))
Expand Down Expand Up @@ -129,14 +128,6 @@ function UseOfForce(props) {
openModal(USE_OF_FORCE, TABLE_COLUMNS);
};

const updateUseOfForce = (val) => {
chartState.yearSet = val.yearRange;
chartState.data[USE_OF_FORCE] = val.data;

setPickerXAxis(val.xAxis);
setPickerActive((oldVal) => !oldVal);
};

const lineAxisFormat = (t) => {
if (pickerActive) {
return t;
Expand Down Expand Up @@ -191,12 +182,6 @@ function UseOfForce(props) {
options={[YEARS_DEFAULT].concat(chartState.yearRange)}
dropUp
/>
{/* <MonthRangePicker */}
{/* agencyId={agencyId} */}
{/* dataSet={USE_OF_FORCE} */}
{/* onChange={updateUseOfForce} */}
{/* onClosePicker={() => setPickerActive(null)} */}
{/* /> */}
</S.PieSection>
</S.ChartSubsection>
</S.ChartSection>
Expand Down

0 comments on commit 8d2f14d

Please sign in to comment.