orders: clean code

This commit is contained in:
2025-10-12 22:40:32 +03:00
parent 2bfab6d45c
commit 3755128589
4 changed files with 30 additions and 31 deletions

View File

@@ -18,7 +18,7 @@ import ProductFooter from "./components/ProductFooter";
import Variants from "./components/Variants";
import styles from "./product.module.css";
export default function ProductDetailPage({ onClose }: { onClose: () => void }) {
export default function ProductDetailPage({ onClose }: { onClose?: () => void }) {
const { isRTL } = useAppSelector((state) => state.locale);
const { isDesktop } = useBreakPoint();
const [quantity, setQuantity] = useState(1);