From 405cc9ae69616d1a5d3f984ada212891f7e70a3a Mon Sep 17 00:00:00 2001 From: pollutri Date: Tue, 26 May 2026 16:23:58 +0200 Subject: [PATCH] variabilizzati parametri per il limite di testo --- app/admin/page.tsx | 10 ++++++---- app/api/portals/route.ts | 6 ++++++ lib/config.ts | 16 ++++++++++++++++ lib/validation.ts | 34 +++++++++++++++++++++++++++------- 4 files changed, 55 insertions(+), 11 deletions(-) diff --git a/app/admin/page.tsx b/app/admin/page.tsx index 8d03f12..2b36bcc 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -3,7 +3,7 @@ import { useState, useEffect, useRef } from 'react'; import { Card, Portal, MediaItem, CardType } from '@/types'; import { EXTERNAL_LINK_ENABLED as EXTERNAL_LINK_DEFAULT } from '@/lib/config'; -import { CARD_LIMITS } from '@/lib/validation'; +import { CARD_LIMITS, PORTAL_LIMITS } from '@/lib/validation'; type CharCounterProps = { value: string | undefined; limit: number }; function CharCounter({ value, limit }: CharCounterProps) { @@ -609,12 +609,14 @@ export default function AdminDashboard() {
- setPortal({...portal, title: e.target.value})} className={inputClasses} /> + setPortal({...portal, title: e.target.value})} className={inputClasses} /> +
- +
-