feat: add new affine loading component

This commit is contained in:
himself65
2023-04-11 22:57:20 -05:00
parent 07a11ed767
commit db8fe4e09a
12 changed files with 1588 additions and 8 deletions

View File

@@ -5,5 +5,11 @@
"dependencies": {
"@affine/env": "workspace:*",
"jotai": "^2.0.4"
},
"devDependencies": {
"lottie-web": "^5.11.0"
},
"peerDependencies": {
"lottie-web": "*"
}
}

View File

@@ -46,3 +46,5 @@ export function atomWithSyncStorage<Value>(key: string, initialValue: Value) {
return anAtom;
}
export * from './resource';

View File

@@ -0,0 +1,5 @@
import { atom } from 'jotai';
export const lottieAtom = atom(async () =>
import('lottie-web').then(m => m.default)
);