Rental guest search: show phone number as subtitle in suggestions

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-21 16:49:44 +03:00
parent dbccc59dfc
commit 033882790d

View File

@@ -277,7 +277,10 @@ export function RentalBookingModal({
<div className="min-w-0 flex-1"> <div className="min-w-0 flex-1">
<p className="text-sm font-medium text-slate-800 dark:text-slate-200 truncate">{b.guestName}</p> <p className="text-sm font-medium text-slate-800 dark:text-slate-200 truncate">{b.guestName}</p>
<p className="text-[11px] text-slate-400 truncate"> <p className="text-[11px] text-slate-400 truncate">
{isCheckedIn ? '🏠 Проживает' : '📅 Бронь'}{rLabel ? ` · ${rLabel}` : ''}{b.guestPhone ? ` · ${b.guestPhone}` : ''} {b.guestPhone
? b.guestPhone
: isCheckedIn ? '🏠 Проживает' : '📅 Бронь'
}{rLabel ? ` · ${rLabel}` : ''}
</p> </p>
</div> </div>
</button> </button>
@@ -302,7 +305,7 @@ export function RentalBookingModal({
<div className="min-w-0 flex-1"> <div className="min-w-0 flex-1">
<p className="text-sm font-medium text-slate-800 dark:text-slate-200 truncate">{g.lastName} {g.firstName}</p> <p className="text-sm font-medium text-slate-800 dark:text-slate-200 truncate">{g.lastName} {g.firstName}</p>
<p className="text-[11px] text-slate-400 truncate"> <p className="text-[11px] text-slate-400 truncate">
📋 База гостей{g.phone ? ` · ${g.phone}` : ''} {g.phone ?? 'нет телефона'}
</p> </p>
</div> </div>
</button> </button>