From 6482e692b32bab18120062b07c694a79074cf5e4 Mon Sep 17 00:00:00 2001 From: Sergio Ramirez Date: Mon, 15 Dec 2025 13:04:00 -0400 Subject: [PATCH] Se cambio del modulo de producto-inventario el $ por Bs. --- .../inventory/product-tables/columns.tsx | 8 ++--- .../components/products/productCard.tsx | 2 +- .../components/products/see-product.tsx | 32 +++++++++---------- 3 files changed, 21 insertions(+), 21 deletions(-) diff --git a/apps/web/feactures/inventory/components/inventory/product-tables/columns.tsx b/apps/web/feactures/inventory/components/inventory/product-tables/columns.tsx index 75fdd83..d1077f8 100644 --- a/apps/web/feactures/inventory/components/inventory/product-tables/columns.tsx +++ b/apps/web/feactures/inventory/components/inventory/product-tables/columns.tsx @@ -9,9 +9,9 @@ export const columns: ColumnDef[] = [ accessorKey: 'urlImg', header: 'img', cell: ({ row }) => { - return ( - - ) + return ( + + ) }, }, { @@ -27,7 +27,7 @@ export const columns: ColumnDef[] = [ { accessorKey: 'price', header: 'Precio', - cell: ({ row }) => `${row.original.price}$` + cell: ({ row }) => `${row.original.price} Bs.` }, { accessorKey: 'stock', diff --git a/apps/web/feactures/inventory/components/products/productCard.tsx b/apps/web/feactures/inventory/components/products/productCard.tsx index 6ed084a..344793c 100644 --- a/apps/web/feactures/inventory/components/products/productCard.tsx +++ b/apps/web/feactures/inventory/components/products/productCard.tsx @@ -32,7 +32,7 @@ export function ProductCard({ product, onClick }: cardProps) { {product.status === 'AGOTADO' ? (

AGOTADO

) : ('')} -

$ {product.price}

+

{product.price} Bs.

) diff --git a/apps/web/feactures/inventory/components/products/see-product.tsx b/apps/web/feactures/inventory/components/products/see-product.tsx index d7a7563..02fc071 100644 --- a/apps/web/feactures/inventory/components/products/see-product.tsx +++ b/apps/web/feactures/inventory/components/products/see-product.tsx @@ -1,6 +1,6 @@ 'use client'; import { useState } from "react"; -import { allProducts } from "../../schemas/inventory"; +import { allProducts } from "../../schemas/inventory"; import { Card, CardContent, @@ -9,11 +9,11 @@ import { CardTitle, } from '@repo/shadcn/card'; -export function ProductList({product}: {product: allProducts}) { - const [selectedImg, setSelectedImg] = useState(`/uploads/inventory/${product.userId}/${product.id}/${product.urlImg}`) +export function ProductList({ product }: { product: allProducts }) { + const [selectedImg, setSelectedImg] = useState(`/uploads/inventory/${product.userId}/${product.id}/${product.urlImg}`) console.log(product); - -return ( + + return ( //
@@ -31,21 +31,21 @@ return ( */} {product.gallery?.map((img, index) => ( - setSelectedImg(`/uploads/inventory/${product.userId}/${product.id}/${img}`)} - /> - ))} - {/*
+ setSelectedImg(`/uploads/inventory/${product.userId}/${product.id}/${img}`)} + /> + ))} + {/*
{">"}
*/} - +
@@ -53,7 +53,7 @@ return ( {product.title.charAt(0).toUpperCase() + product.title.slice(1)} -

{product.price}$ +

{product.price} Bs. {product.status === 'AGOTADO' ? ( AGOTADO ) : ('')}