Skip to content

Commit b5ef46d

Browse files
committed
chore: PostProps 인터페이스 구조 변경
1 parent b1d80fc commit b5ef46d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/components/Post/Post.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ const getPayRateText = (
2222
};
2323

2424
interface PostProps {
25+
name: string;
26+
imageUrl: string;
27+
address1: string;
28+
originalHourlyPay: number;
29+
link: string;
2530
hourlyPay: number;
2631
startsAt: string;
2732
workhour: number;
2833
closed: boolean;
29-
shop: {
30-
name: string;
31-
imageUrl: string;
32-
address1: string;
33-
originalHourlyPay: number;
34-
link: string;
35-
};
3634
}
3735

3836
export default function Post({
37+
name,
38+
imageUrl,
39+
address1,
40+
originalHourlyPay,
41+
link,
3942
hourlyPay,
4043
startsAt,
4144
workhour,
4245
closed,
43-
shop,
4446
}: PostProps) {
45-
const { name, address1, imageUrl, originalHourlyPay, link } = shop;
46-
4747
const timeRange = formatTimeRange(startsAt, workhour);
4848
const isPast = isPastDate(startsAt, workhour);
4949
const isDimmed = closed || isPast;

0 commit comments

Comments
 (0)