Update May 21 by Elvis

This commit is contained in:
belviskhoremk
2026-05-21 22:24:22 +00:00
parent 57f3311278
commit 342ba2c867
12 changed files with 71 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
"use client";
import { useState, useEffect } from "react";
import { useState, useEffect, startTransition } from "react";
import { Star, ChevronLeft, Check } from "lucide-react";
import { Button } from "@/components/ui/button";
import { useLanguage } from "@/contexts/LanguageContext";
@@ -26,7 +26,7 @@ export default function ProductDetail() {
useEffect(() => {
if (!id) return;
setLoading(true);
startTransition(() => setLoading(true));
getProduct(id as string)
.then((p) => {
setProduct(p);