Skip to content

Commit

Permalink
style: move interface on types
Browse files Browse the repository at this point in the history
  • Loading branch information
JeongMin83 committed Jan 5, 2024
1 parent 0494448 commit 6401706
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/Review/Review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,7 @@ import styles from "./Review.module.scss";

import ReviewImageSlider from "./ReviewImageSlider/ReviewImageSlider";

interface ReviewProps {
name: string;
isGoogle: boolean;
point: string;
visitedAt: string;
content: string;
images: string[] | undefined;
}
import { ReviewPropsTypes } from "@/types/detail";

function Review({
name,
Expand All @@ -21,7 +14,7 @@ function Review({
visitedAt,
content,
images,
}: ReviewProps) {
}: ReviewPropsTypes) {
return (
<div className={styles.container}>
<div>
Expand Down
9 changes: 9 additions & 0 deletions src/types/detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ export interface OtherCardPropsType {
point: string;
count: number;
}

export interface ReviewPropsTypes {
name: string;
isGoogle: boolean;
point: string;
visitedAt: string;
content: string;
images: string[] | undefined;
}

0 comments on commit 6401706

Please sign in to comment.