Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ivntsng committed Nov 8, 2024
1 parent 45da2dc commit 2fd70cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 1 addition & 7 deletions frontend/src/components/listing/FeaturedListings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<void>;
Expand Down
6 changes: 2 additions & 4 deletions frontend/src/lib/utils/FeaturedListingsCookies.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down

0 comments on commit 2fd70cd

Please sign in to comment.