-
Notifications
You must be signed in to change notification settings - Fork 719
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Release v0.2.2-beta.0 (#1644)
- Loading branch information
Showing
90 changed files
with
1,312 additions
and
974 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Skeleton } from "@follow/components/ui/skeleton/index.js" | ||
import type { DotLottieReactProps } from "@lottiefiles/dotlottie-react" | ||
import type { PropsWithoutRef } from "react" | ||
import { lazy, Suspense } from "react" | ||
|
||
const LazyDotLottieComponent = lazy(async () => { | ||
const { DotLottieReact } = await import("@lottiefiles/dotlottie-react") | ||
return { default: DotLottieReact } | ||
}) | ||
|
||
export const LazyDotLottie = (props: PropsWithoutRef<DotLottieReactProps>) => { | ||
return ( | ||
<Suspense fallback={<Skeleton className={props.className} />}> | ||
<LazyDotLottieComponent {...props} /> | ||
</Suspense> | ||
) | ||
} |
Oops, something went wrong.