Skip to content

Commit

Permalink
sdp-tech#126 refactor : fix type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
kimheonningg committed Oct 3, 2024
1 parent ee48fec commit 928ad97
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/components/Home/Market/Service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,18 @@ import DetailModal from '../Market/GoodsDetailOptionsModal';
import { Styles } from '../../../types/UserTypes.ts';
import { SelectedOptionProps } from '../HomeMain.tsx';

type ServiceCardProps = {
interface ServiceCardProps {
name: string;
price: number; // price variable should be a number to apply filters
tags: Styles[];
price: number;
tags: string[];
imageUri: string;
title: string;
description?: string;
navigation?: any; //TODO: change type later
};
description: string;
}

interface ServiceCardComponentProps extends ServiceCardProps {
navigation?: any;
}

// TODO: replace the below dummy data
// API 연결 시 이 부분만 바꾸면 됩니다!
Expand Down Expand Up @@ -144,7 +147,7 @@ export const ServiceCard = ({
title,
description,
navigation,
}: ServiceCardProps) => {
}: ServiceCardComponentProps) => {
const [like, setLike] = useState(false);

return (
Expand Down

0 comments on commit 928ad97

Please sign in to comment.