diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/misc/chart.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/misc/chart.ts b/src/misc/chart.ts index a6ee82e..c62fa06 100644 --- a/src/misc/chart.ts +++ b/src/misc/chart.ts @@ -1,7 +1,7 @@ -import { unstable_createResource as createResource } from '@hsjs/react-cache'; +import { createAsset } from "use-asset" import prettyBytes from './pretty-bytes'; -export const chartJSResource = createResource(() => { +export const chartJSResource = createAsset(() => { return import('$src/misc/chart-lib'); }); @@ -76,6 +76,3 @@ export const chartStyles = [ }, }, ]; - -// TODO to remove -export const colorCombo = chartStyles; |
