Fix TypeScript build errors
- GuestReviewPage: fix hotel config lookup type (slug && obj returns '' | obj)
- PosPage, ReviewsPage: change ComponentType<{size?:number}> to ElementType for Lucide icon compatibility
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -220,7 +220,7 @@ export function ReviewsPage() {
|
||||
return null
|
||||
}
|
||||
|
||||
const TABS: { key: Tab; label: string; count?: number; colorCls?: string; Icon?: React.ComponentType<{ size?: number }> }[] = [
|
||||
const TABS: { key: Tab; label: string; count?: number; colorCls?: string; Icon?: React.ElementType }[] = [
|
||||
{ key: 'pending', label: 'Требуют ответа', count: pending.length, colorCls: 'bg-red-500 text-white' },
|
||||
{ key: 'published', label: 'Архив', count: published.length },
|
||||
{ key: 'all', label: 'Все' },
|
||||
|
||||
Reference in New Issue
Block a user