mirror of
https://github.com/vercel/commerce.git
synced 2025-07-31 14:01:24 +00:00
Adding Search Skeleton
This commit is contained in:
@@ -19,6 +19,7 @@ export default function useData<T, Input = any>(
|
|||||||
fetcherRef.current
|
fetcherRef.current
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const response = useSWR(
|
const response = useSWR(
|
||||||
() => {
|
() => {
|
||||||
const opts = typeof options === 'function' ? options() : options
|
const opts = typeof options === 'function' ? options() : options
|
||||||
|
@@ -145,7 +145,7 @@ export default function Search({
|
|||||||
: () => (
|
: () => (
|
||||||
<Skeleton
|
<Skeleton
|
||||||
className="w-full animate__animated animate__fadeIn rounded-md"
|
className="w-full animate__animated animate__fadeIn rounded-md"
|
||||||
height={200}
|
height={325}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user