feat(SW-281): add alt text
This commit is contained in:
@@ -14,6 +14,7 @@ import type { HotelListingProps } from "@/types/components/contentPage/hotelList
|
||||
|
||||
export default async function HotelListing({
|
||||
image,
|
||||
altText,
|
||||
name,
|
||||
address,
|
||||
distance,
|
||||
@@ -26,7 +27,7 @@ export default async function HotelListing({
|
||||
<section>
|
||||
<Image
|
||||
src={image}
|
||||
alt=""
|
||||
alt={altText}
|
||||
width={300}
|
||||
height={200}
|
||||
className={styles.image}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import { Hotel } from "@/types/hotel"
|
||||
import type { Hotel } from "@/types/hotel"
|
||||
|
||||
export type HotelListingProps = {
|
||||
image: Hotel["hotelContent"]["images"]["imageSizes"]["large"]
|
||||
altText: Hotel["hotelContent"]["images"]["metaData"]["altText"]
|
||||
name: Hotel["name"]
|
||||
address: Hotel["address"]["streetAddress"]
|
||||
distance: Hotel["location"]["distanceToCentre"]
|
||||
|
||||
Reference in New Issue
Block a user