Skip to content
Merged

Dev #107

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ interface ItemExtraDetailsProps {

const ItemExtraDetails = ({ extraDetails }: ItemExtraDetailsProps) => {
const parsedSections = useMemo(() => {
if (!extraDetails || extraDetails.length === 0) return [];
if (
!extraDetails ||
!Array.isArray(extraDetails) ||
extraDetails.length === 0
)
return [];
Comment on lines +11 to +16

const sections: {
title: string;
Expand Down
2 changes: 1 addition & 1 deletion src/app/(main-layout)/(home)/search-listing/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const SearchListingDetailsPage = () => {
return (
<div>
<GradientBannerCustom showNav={false}>
<div className="text-white flex flex-row md:flex-row items-start justify-between gap-3 w-full md:pt-24 px-4 pt-2">
<div className="text-white flex flex-row md:flex-row items-start justify-between gap-3 w-full md:pt-10 px-4 pt-2 pb-2">
<div className="flex flex-row items-center justify-start gap-3 font-semibold text-sm md:text-xl lg:text-2xl">
<FaArrowLeft
className="cursor-pointer"
Expand Down
2 changes: 1 addition & 1 deletion src/components/shared/ShareWith/ShareWIth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ShareWIth = ({ title, description }: ShareWIthProps) => {

<div className="flex flex-col md:flex-row items-center gap-4 w-full">
<div className="flex-1 min-w-0 flex items-center gap-2 bg-gray-100 rounded-lg px-4 py-3">
<span className="flex-1 min-w-0 text-sm text-gray-500 truncate">
<span className="md:flex-1 text-sm text-gray-500 md:truncate">
{shareUrl}
</span>
<button
Expand Down
Loading