@@ -12,12 +12,12 @@ import {
12
12
} from "lucide-react" ;
13
13
import { motion } from "motion/react" ;
14
14
import { cn } from "@/lib/utils" ;
15
+ import { useDebounce } from "@/hooks/use-debounce" ;
15
16
import { useMounted } from "@/hooks/use-mounted" ;
16
17
import { Button } from "@/components/core/button" ;
18
+ import { Skeleton } from "@/components/core/skeleton" ;
17
19
import { useSidebarContext } from "@/components/sidebar" ;
18
20
import { useCurrentTheme } from "@/modules/themes/atoms/themes-atom" ;
19
- import { Skeleton } from "@/components/core/skeleton" ;
20
- import { useDebounce } from "@/hooks/use-debounce" ;
21
21
22
22
const PreviewContext = React . createContext < {
23
23
isOpen : boolean ;
@@ -128,8 +128,8 @@ export function PreviewContent({
128
128
const iframeRef = React . useRef < HTMLIFrameElement > ( null ) ;
129
129
const [ isLoading , setLoading ] = React . useState ( false ) ;
130
130
const [ currentPathname , setCurrentPathname ] = React . useState ( "" ) ;
131
- const isMounted = useMounted ( )
132
- const debouncedIsMounted = useDebounce ( isMounted , 1500 )
131
+ const isMounted = useMounted ( ) ;
132
+ const debouncedIsMounted = useDebounce ( isMounted , 1500 ) ;
133
133
134
134
const reload = ( ) => {
135
135
if ( iframeRef . current ) {
@@ -247,9 +247,12 @@ export function PreviewContent({
247
247
) }
248
248
</ div >
249
249
</ div >
250
- < Skeleton show = { ! debouncedIsMounted } className = "size-full rounded-[inherit]" >
250
+ < Skeleton
251
+ show = { ! debouncedIsMounted }
252
+ className = "size-full rounded-[inherit]"
253
+ >
251
254
< iframe
252
- ref = { iframeRef }
255
+ ref = { iframeRef }
253
256
src = { `/preview/${ themeName } ` }
254
257
className = "rounded-{inherit] size-full"
255
258
onLoad = { ( ) => {
0 commit comments