diff --git a/frontend/src/components/listing/FeaturedListings.tsx b/frontend/src/components/listing/FeaturedListings.tsx index 8066c871..4921e481 100644 --- a/frontend/src/components/listing/FeaturedListings.tsx +++ b/frontend/src/components/listing/FeaturedListings.tsx @@ -2,17 +2,11 @@ import React, { createContext, useContext, useEffect, useState } from "react"; import { useAuthentication } from "@/hooks/useAuth"; import { + FeaturedListing, getFeaturedListingsFromCookie, setFeaturedListingsCookie, } from "@/lib/utils/FeaturedListingsCookies"; -type FeaturedListing = { - id: string; - username: string; - slug: string | null; - name: string; -}; - type FeaturedListingsContextType = { featuredListings: FeaturedListing[]; refreshFeaturedListings: () => Promise; diff --git a/frontend/src/lib/utils/FeaturedListingsCookies.ts b/frontend/src/lib/utils/FeaturedListingsCookies.ts index 234507ac..f966b08b 100644 --- a/frontend/src/lib/utils/FeaturedListingsCookies.ts +++ b/frontend/src/lib/utils/FeaturedListingsCookies.ts @@ -1,10 +1,8 @@ export interface FeaturedListing { id: string; + username: string; + slug: string | null; name: string; - slug: string; - description: string; - stripe_link?: string; - price?: number; } export const FEATURED_LISTINGS_COOKIES = "featured_listings";