Skip to content

Commit 7ff5633

Browse files
committed
chore(shop): comment out 3D hero for now, keep component
1 parent 74643d3 commit 7ff5633

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/routes/shop.index.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import { createFileRoute, useNavigate } from '@tanstack/react-router'
33
import { useMutation } from '@tanstack/react-query'
44
import * as v from 'valibot'
55
import { 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+
// )
1313
import { getProducts } from '~/utils/shop.functions'
1414
import {
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

Comments
 (0)