From 9daed56819faeed45d62d2b5d54f584fcb5d90a5 Mon Sep 17 00:00:00 2001 From: chattie Date: Mon, 24 Aug 2026 22:17:01 +0200 Subject: [PATCH] fix(admin): add twitterUrl/pinterestUrl to StoreSettings interface for settings page type safety --- project/apps/admin/src/lib/api-client.ts | 2 ++ project/apps/pos/src/components/ReceiptModal.tsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/project/apps/admin/src/lib/api-client.ts b/project/apps/admin/src/lib/api-client.ts index 87997ca..ac9b1b7 100644 --- a/project/apps/admin/src/lib/api-client.ts +++ b/project/apps/admin/src/lib/api-client.ts @@ -371,6 +371,8 @@ export interface StoreSettings { footerText: string; facebookUrl: string; instagramUrl: string; + twitterUrl: string; + pinterestUrl: string; aiProvider: string; aiBaseUrl: string; aiModel: string; diff --git a/project/apps/pos/src/components/ReceiptModal.tsx b/project/apps/pos/src/components/ReceiptModal.tsx index 5f3c21b..f78365e 100644 --- a/project/apps/pos/src/components/ReceiptModal.tsx +++ b/project/apps/pos/src/components/ReceiptModal.tsx @@ -67,7 +67,7 @@ export default function ReceiptModal({ {/* Timestamp */}
Ticket #{receipt.receiptNumber} - {new Date(receipt.createdAt).toLocaleString('es-ES', { dateStyle: 'short', timeStyle: 'short' })} + {new Date(receipt.issuedAt).toLocaleString('es-ES', { dateStyle: 'short', timeStyle: 'short' })}
{/* Logo */}