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:
2026-03-16 19:43:20 +03:00
parent dc3e68dbe2
commit 26da3eafa8
3 changed files with 4 additions and 4 deletions

View File

@@ -48,7 +48,7 @@ const DEFAULT_CONFIG: HotelConfig = {
export function GuestReviewPage() {
const { slug } = useParams<{ slug: string }>()
const hotel = (slug && MOCK_HOTELS[slug]) ?? DEFAULT_CONFIG
const hotel: HotelConfig = (slug ? MOCK_HOTELS[slug] : null) ?? DEFAULT_CONFIG
const [rating, setRating] = useState(0)
const [hover, setHover] = useState(0)