@@ -3,13 +3,13 @@ import { createFileRoute, useNavigate } from '@tanstack/react-router'
33import { useMutation } from '@tanstack/react-query'
44import * as v from 'valibot'
55import { ProductCard } from '~/components/shop/ProductCard'
6- import { useTheme } from '~/components/ThemeProvider'
6+ // import { useTheme } from '~/components/ThemeProvider'
77
8- const LazyShopHero = React . lazy ( ( ) =>
9- import ( '~/components/shop/ShopHero3D' ) . then ( ( m ) => ( {
10- default : m . ShopHero3D ,
11- } ) ) ,
12- )
8+ // const LazyShopHero = React.lazy(() =>
9+ // import('~/components/shop/ShopHero3D').then((m) => ({
10+ // default: m.ShopHero3D,
11+ // })),
12+ // )
1313import { getProducts } from '~/utils/shop.functions'
1414import {
1515 SORT_OPTIONS ,
@@ -100,11 +100,11 @@ function ShopIndex() {
100100
101101 return (
102102 < div className = "flex flex-col" >
103- < div className = "w-full aspect-[3/1] max-h-[250px]" >
103+ { /* <div className="w-full aspect-[3/1] max-h-[250px]">
104104 <React.Suspense fallback={null}>
105105 <ShopHeroWithTheme />
106106 </React.Suspense>
107- </ div >
107+ </div> */ }
108108
109109 < div className = "flex flex-col max-w-6xl mx-auto w-full gap-8 p-4 md:p-8" >
110110 < header className = "flex flex-wrap items-end justify-between gap-4" >
@@ -175,7 +175,7 @@ function ShopIndex() {
175175 )
176176}
177177
178- function ShopHeroWithTheme ( ) {
179- const { resolvedTheme } = useTheme ( )
180- return < LazyShopHero isDark = { resolvedTheme === 'dark' } />
181- }
178+ // function ShopHeroWithTheme() {
179+ // const { resolvedTheme } = useTheme()
180+ // return <LazyShopHero isDark={resolvedTheme === 'dark'} />
181+ // }
0 commit comments