Skip to content

Commit

Permalink
chore: Update eslint (major) (#8)
Browse files Browse the repository at this point in the history
* chore: Update eslint

* style: fix typing in PieChart

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: mizozobu <hamc.m.so.j12@gmail.com>
  • Loading branch information
3 people committed Mar 26, 2022
1 parent b26561d commit 6a9842f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/molecules/PieChart/PieChart.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useCallback, useState, FC, HTMLAttributes } from 'react';
import { Pie } from 'react-chartjs-2';
import { ChartData, ChartOptions } from 'chart.js';
import { useScreenSize, gte, ScreenSize } from '@l/ScreenSize';
import { useScreenSize, gte, ScreenSize, ScreenSizeType } from '@l/ScreenSize';

export interface Props extends HTMLAttributes<HTMLDivElement> {
_options?: ChartOptions<'pie'>;
Expand Down Expand Up @@ -37,7 +37,7 @@ export const PieChart: FC<Props> = ({
},
});

const handler = useCallback((screenSize) => {
const handler = useCallback((screenSize: ScreenSizeType) => {
setOptions((prev) => ({
...prev,
plugins: {
Expand Down

0 comments on commit 6a9842f

Please sign in to comment.