refactor: remove unused package (#4291)

This commit is contained in:
Alex Yang
2023-09-08 17:00:26 -07:00
committed by GitHub
parent e00f40537b
commit 162016884c
26 changed files with 31 additions and 100 deletions

View File

@@ -1,5 +1,5 @@
import { isBrowser } from '@affine/env/constant';
import type { UpdateMeta } from '@toeverything/infra';
import type { UpdateMeta } from '@toeverything/infra/type';
import { atomWithObservable, atomWithStorage } from 'jotai/utils';
import { Observable } from 'rxjs';

View File

@@ -1,6 +1,5 @@
import { lottieAtom } from '@affine/jotai';
import { useAtomValue } from 'jotai';
import type { AnimationItem } from 'lottie-web';
import lottie from 'lottie-web';
import { useEffect, useRef } from 'react';
interface CustomLottieProps {
@@ -28,7 +27,6 @@ export const InternalLottie = ({
}: CustomLottieProps) => {
const element = useRef<HTMLDivElement>(null);
const lottieInstance = useRef<AnimationItem>();
const lottie = useAtomValue(lottieAtom);
const directionRef = useRef<1 | -1>(1);
useEffect(() => {
@@ -76,7 +74,7 @@ export const InternalLottie = ({
}
lottieInstance.current?.destroy();
};
}, [lottie, options]);
}, [options]);
useEffect(() => {
if (speed) {