mirror of
https://github.com/Afilmory/afilmory
synced 2026-02-01 22:48:17 +00:00
- Removed the framer-lazy-feature module and updated LazyMotion components in both landing and dashboard providers to use domMax directly. - This change simplifies the feature loading process and improves performance by eliminating unnecessary imports. Signed-off-by: Innei <tukon479@gmail.com>
18 lines
606 B
TypeScript
18 lines
606 B
TypeScript
'use client'
|
|
|
|
import { QueryClientProvider } from '@tanstack/react-query'
|
|
import { domMax, LazyMotion } from 'motion/react'
|
|
import type { JSX, PropsWithChildren } from 'react'
|
|
|
|
import { ProviderComposer } from '../../components/common/ProviderComposer'
|
|
import { queryClient } from '../../lib/query-client'
|
|
|
|
const contexts: JSX.Element[] = [
|
|
<QueryClientProvider key="queryClient" client={queryClient} />,
|
|
<LazyMotion features={domMax} strict key="framer" />,
|
|
]
|
|
|
|
export function Providers({ children }: PropsWithChildren) {
|
|
return <ProviderComposer contexts={contexts}>{children}</ProviderComposer>
|
|
}
|