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({
|
export default async function HotelListing({
|
||||||
image,
|
image,
|
||||||
|
altText,
|
||||||
name,
|
name,
|
||||||
address,
|
address,
|
||||||
distance,
|
distance,
|
||||||
@@ -26,7 +27,7 @@ export default async function HotelListing({
|
|||||||
<section>
|
<section>
|
||||||
<Image
|
<Image
|
||||||
src={image}
|
src={image}
|
||||||
alt=""
|
alt={altText}
|
||||||
width={300}
|
width={300}
|
||||||
height={200}
|
height={200}
|
||||||
className={styles.image}
|
className={styles.image}
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
import { Hotel } from "@/types/hotel"
|
import type { Hotel } from "@/types/hotel"
|
||||||
|
|
||||||
export type HotelListingProps = {
|
export type HotelListingProps = {
|
||||||
image: Hotel["hotelContent"]["images"]["imageSizes"]["large"]
|
image: Hotel["hotelContent"]["images"]["imageSizes"]["large"]
|
||||||
|
altText: Hotel["hotelContent"]["images"]["metaData"]["altText"]
|
||||||
name: Hotel["name"]
|
name: Hotel["name"]
|
||||||
address: Hotel["address"]["streetAddress"]
|
address: Hotel["address"]["streetAddress"]
|
||||||
distance: Hotel["location"]["distanceToCentre"]
|
distance: Hotel["location"]["distanceToCentre"]
|
||||||
|
|||||||
Reference in New Issue
Block a user