Skip to content

Commit

Permalink
style: fix typing in PieChart
Browse files Browse the repository at this point in the history
  • Loading branch information
mizozobu committed Oct 13, 2021
1 parent 52e9a1d commit a5488be
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 a5488be

Please sign in to comment.