fix(umkm): use KategoriProdukUmkm in KPI and fix product detail description - bump to 0.1.39
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "desa-darmasaba",
|
"name": "desa-darmasaba",
|
||||||
"version": "0.1.38",
|
"version": "0.1.39",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ async function umkmDashboardKpi(context: Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (topCategoryId) {
|
if (topCategoryId) {
|
||||||
const kategori = await prisma.kategoriProduk.findUnique({
|
const kategori = await prisma.kategoriProdukUmkm.findUnique({
|
||||||
where: { id: topCategoryId },
|
where: { id: topCategoryId },
|
||||||
select: { nama: true },
|
select: { nama: true },
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -174,7 +174,10 @@ function DetailProdukPasarUser() {
|
|||||||
{data.stok > 0 ? `Stok: ${data.stok}` : 'Stok Habis'}
|
{data.stok > 0 ? `Stok: ${data.stok}` : 'Stok Habis'}
|
||||||
</Badge>
|
</Badge>
|
||||||
|
|
||||||
<Text>{data.deskripsi}</Text>
|
<Text
|
||||||
|
style={{ wordBreak: 'break-word' }}
|
||||||
|
dangerouslySetInnerHTML={{ __html: data.deskripsi || '-' }}
|
||||||
|
/>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
leftSection={<IconShoppingCart />}
|
leftSection={<IconShoppingCart />}
|
||||||
|
|||||||
Reference in New Issue
Block a user