diff options
| author | Haishan <[email protected]> | 2022-05-09 13:13:43 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2022-05-09 13:14:06 +0800 |
| commit | 5076c601f4cc48497d4c907f3d101db5b49b3cf5 (patch) | |
| tree | 5bd2fb4ff1813b0a3473835e1b7cd0e1ae970970 /src | |
| parent | 34045f8f41343f39518ba01a4f9c6ce76941d28f (diff) | |
Use use-assettest
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; |
