diff options
| author | Haishan <[email protected]> | 2021-05-30 16:33:27 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2021-05-30 17:11:57 +0800 |
| commit | cac64c0d2a80105db14ae04e0aeb4eacb148a771 (patch) | |
| tree | 0471b5af331986b00366856ace236617bcb6c16e /src/hooks | |
| parent | d46ce57be85dc39453cb5668a49ca76e18d6ec7c (diff) | |
Use vite
Diffstat (limited to 'src/hooks')
| -rw-r--r-- | src/hooks/useLineChart.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/hooks/useLineChart.ts b/src/hooks/useLineChart.ts index 3bfd7d7..2757ee1 100644 --- a/src/hooks/useLineChart.ts +++ b/src/hooks/useLineChart.ts @@ -1,6 +1,5 @@ import React from 'react'; - -import { commonChartOptions } from '../misc/chart'; +import { commonChartOptions } from 'src/misc/chart'; const { useEffect } = React; const options = commonChartOptions; @@ -13,7 +12,6 @@ export default function useLineChart( extraChartOptions = {} ) { useEffect(() => { - // @ts-expect-error ts-migrate(2339) FIXME: Property 'getContext' does not exist on type 'HTML... Remove this comment to see the full error message const ctx = document.getElementById(elementId).getContext('2d'); const c = new Chart(ctx, { type: 'line', |
