Skip to content

Commit

Permalink
Use img tag everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-dharti-r committed Mar 12, 2024
1 parent 112f86a commit 0d47aa2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion website/app/category/[category]/restaurant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const RestaurantsPage = ({
<source src={item.video} type="video/mp4" />
</video>
) : (
<Image
<img
src={item.image}
width={1000}
height={1000}
Expand Down
8 changes: 4 additions & 4 deletions website/app/restaurants/[restaurant]/menu/menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const Menu = ({ paramsData }: { paramsData: { restaurant: string } }) => {
<div className="relative mx-auto mb-16 capitalize">
<div className="animated-fade-y h-[50rem] w-full">
{restaurantData.images ? (
<Image
<img
src={restaurantData.images[0]}
height={1000}
width={1000}
Expand Down Expand Up @@ -223,7 +223,7 @@ const Menu = ({ paramsData }: { paramsData: { restaurant: string } }) => {
id={"image-" + data}
>
<SwiperSlide>
<Image
<img
src={data}
width={1000}
height={1000}
Expand Down Expand Up @@ -272,7 +272,7 @@ const Menu = ({ paramsData }: { paramsData: { restaurant: string } }) => {
<div className="scrollbar-hidden reelsContainer">
<div className="reel relative capitalize">
<div className="h-full w-full">
<Image
<img
src="/images/restaurants/1-1.webp"
height={1000}
width={1000}
Expand Down Expand Up @@ -378,7 +378,7 @@ const Menu = ({ paramsData }: { paramsData: { restaurant: string } }) => {
}}
>
<div className="flex h-full w-full items-center bg-black bg-opacity-20 backdrop-blur-sm">
<Image
<img
src={data}
width={1000}
height={5000}
Expand Down
8 changes: 4 additions & 4 deletions website/components/FoodCategory/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const FoodCategory = () => {
href={`/category/${item.id}`}
className="flex h-80 w-[15rem] cursor-pointer flex-col gap-2"
>
<Image
<img
src={item.image}
width={1000}
height={1000}
Expand Down Expand Up @@ -89,7 +89,7 @@ const FoodCategory = () => {
.replace(/ /g, "-")}`}
className="flex h-80 w-[15rem] cursor-pointer flex-col gap-2"
>
<Image
<img
src={item.image}
width={1000}
height={1000}
Expand Down Expand Up @@ -122,7 +122,7 @@ const FoodCategory = () => {
.replace(/ /g, "-")}`}
className="flex h-80 cursor-pointer flex-col gap-2"
>
<Image
<img
src={item.image}
width={1000}
height={1000}
Expand Down Expand Up @@ -155,7 +155,7 @@ const FoodCategory = () => {
.replace(/ /g, "-")}`}
className="flex h-80 w-full cursor-pointer flex-col gap-2"
>
<Image
<img
src={item.image}
width={1000}
height={1000}
Expand Down
2 changes: 1 addition & 1 deletion website/components/ItemCard/SingleItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const SingleItem = ({ item }: { item: Item }) => {
<source src={video} type="video/mp4" />
</video>
) : (
<Image src={image} alt="item-image" fill className="object-cover" />
<img src={image} alt="item-image" fill className="object-cover" />
)}
</div>
<div
Expand Down
2 changes: 1 addition & 1 deletion website/components/YouMayLike/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const YouMayLike = () => {
{item.images.map((data) => (
<div key={"image-" + data}>
<SwiperSlide>
<Image
<img
src={data}
width={1000}
height={1000}
Expand Down

0 comments on commit 0d47aa2

Please sign in to comment.