From c3f034d9de42d0530533238ba7c271c5652df128 Mon Sep 17 00:00:00 2001 From: frakarr Date: Sat, 10 Jan 2026 00:12:47 +0100 Subject: [PATCH] Update Settings.tsx --- pages/Settings.tsx | 235 ++++++++++++++++++++++++++++++++++++--------- 1 file changed, 192 insertions(+), 43 deletions(-) diff --git a/pages/Settings.tsx b/pages/Settings.tsx index 0027315..b9ee56b 100644 --- a/pages/Settings.tsx +++ b/pages/Settings.tsx @@ -7,7 +7,8 @@ import { AlertTriangle, User as UserIcon, Server, Bell, Clock, FileText, Lock, Megaphone, CheckCircle2, Info, Hammer, Link as LinkIcon, Eye, EyeOff, Calendar, List, UserCog, Mail, Power, MapPin, CreditCard, - ToggleLeft, ToggleRight, LayoutGrid, PieChart, Users, Send, Cloud, HardDrive, ChevronRight, Palette, Image as ImageIcon, Upload + ToggleLeft, ToggleRight, LayoutGrid, PieChart, Users, Send, Cloud, HardDrive, ChevronRight, Palette, Image as ImageIcon, Upload, + Phone, Hash, Type, Globe, Key, Database, AlignLeft, Euro } from 'lucide-react'; const COLOR_MAP: Record = { @@ -263,10 +264,34 @@ export const SettingsPage: React.FC = () => {

Il Tuo Profilo

-
setProfileForm({...profileForm, name: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none" required />
-
-
setProfileForm({...profileForm, phone: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none" />
-
setProfileForm({...profileForm, password: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none" />
+
+ +
+ + setProfileForm({...profileForm, name: e.target.value})} className="w-full border border-slate-200 p-3 pl-10 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none" required /> +
+
+
+ +
+ + +
+
+
+ +
+ + setProfileForm({...profileForm, phone: e.target.value})} className="w-full border border-slate-200 p-3 pl-10 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none" /> +
+
+
+ +
+ + setProfileForm({...profileForm, password: e.target.value})} className="w-full border border-slate-200 p-3 pl-10 rounded-xl focus:ring-2 focus:ring-blue-500 outline-none" /> +
+
{profileMsg &&

{profileMsg}

}
@@ -277,7 +302,13 @@ export const SettingsPage: React.FC = () => {

Branding

-
setBrandingForm({...brandingForm, appName: e.target.value})}/>
+
+ +
+ + setBrandingForm({...brandingForm, appName: e.target.value})}/> +
+
@@ -285,7 +316,13 @@ export const SettingsPage: React.FC = () => { ))}
-
setBrandingForm({...brandingForm, primaryColor: e.target.value})} className="w-12 h-12 rounded-2xl border-2 cursor-pointer p-0 bg-transparent"/> setBrandingForm({...brandingForm, primaryColor: e.target.value})} className="w-28 text-sm font-mono border border-slate-200 rounded-xl p-3 uppercase font-bold"/>
+
+ setBrandingForm({...brandingForm, primaryColor: e.target.value})} className="w-12 h-12 rounded-2xl border-2 cursor-pointer p-0 bg-transparent"/> +
+ + setBrandingForm({...brandingForm, primaryColor: e.target.value})} className="w-32 text-sm font-mono border border-slate-200 rounded-xl p-3 pl-8 uppercase font-bold"/> +
+
@@ -332,25 +369,56 @@ export const SettingsPage: React.FC = () => {

Dati Condominio

-
setActiveCondo({...activeCondo, name: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl font-bold" required />
-
setActiveCondo({...activeCondo, address: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl" required />
-
-
setActiveCondo({...activeCondo, city: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl" />
-
setActiveCondo({...activeCondo, province: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl" />
+
+ +
+ + setActiveCondo({...activeCondo, name: e.target.value})} className="w-full border border-slate-200 p-3 pl-10 rounded-xl font-bold" required /> +
+
+
+ +
+ + setActiveCondo({...activeCondo, address: e.target.value})} className="w-full border border-slate-200 p-3 pl-10 rounded-xl" required /> +
-
setActiveCondo({...activeCondo, defaultMonthlyQuota: parseFloat(e.target.value)})} className="w-full border border-slate-200 p-3 rounded-xl font-bold" />
-
setActiveCondo({...activeCondo, dueDay: parseInt(e.target.value)})} className="w-full border border-slate-200 p-3 rounded-xl" />
+
+ + setActiveCondo({...activeCondo, city: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl" /> +
+
+ + setActiveCondo({...activeCondo, province: e.target.value})} className="w-full border border-slate-200 p-3 rounded-xl" /> +
+
+
+
+ +
+ + setActiveCondo({...activeCondo, defaultMonthlyQuota: parseFloat(e.target.value)})} className="w-full border border-slate-200 p-3 pl-10 rounded-xl font-bold" /> +
+
+
+ +
+ + setActiveCondo({...activeCondo, dueDay: parseInt(e.target.value)})} className="w-full border border-slate-200 p-3 pl-10 rounded-xl" /> +
+
+ setActiveCondo({...activeCondo, paypalClientId: e.target.value})} - className="w-full border border-slate-200 p-3 rounded-xl text-xs font-mono pr-10" + className="w-full border border-slate-200 p-3 pl-10 rounded-xl text-xs font-mono pr-10" placeholder="sandbox_..." />