-
댓글이 없습니다.
+
+
아직 댓글이 없어요.
첫 댓글을 작성해보세요!
)}
@@ -107,17 +108,19 @@ export default function ReviewComments() {
{
return (
- {group?.data.data.comments.content.map((item: any) => (
-
- ))}
+ {group?.data.data.comments.content.map(
+ (item: CommentItemProps) => (
+
+ ),
+ )}
);
}
diff --git a/src/components/Review/ReviewKeyword.tsx b/src/components/Review/ReviewKeyword.tsx
index 1d9d7ad3..1b33a700 100644
--- a/src/components/Review/ReviewKeyword.tsx
+++ b/src/components/Review/ReviewKeyword.tsx
@@ -4,11 +4,7 @@ import { getReviewKeywords } from '@api/review';
import { useQuery } from '@tanstack/react-query';
import { useRecoilState } from 'recoil';
import { keywordsState } from '@recoil/review';
-
-interface Keyword {
- keywordId: number;
- content: string;
-}
+import { Keyword } from '@/@types/review.types';
export default function ReviewKeyword() {
const location = useLocation();
@@ -59,7 +55,7 @@ export default function ReviewKeyword() {
어떤 점이 좋았나요?
{reviewKeywords?.data?.data?.keywords?.map(
- (keyword: any, index: number) => {
+ (keyword: Keyword, index: number) => {
const row = Math.floor(index / columns) + 1;
const col = (index % columns) + 1;
diff --git a/src/components/Review/ReviewRating.tsx b/src/components/Review/ReviewRating.tsx
index 7ec0baed..f4f5ffb1 100644
--- a/src/components/Review/ReviewRating.tsx
+++ b/src/components/Review/ReviewRating.tsx
@@ -13,7 +13,7 @@ const ReviewRating = () => {
const handleStarClick = (index: number) => {
const newRating = index + 1;
- setRating((prevRating: any) => {
+ setRating((prevRating: number) => {
const updatedIsHalfClicked =
prevRating === newRating ? !isHalfClicked : false;
setIsHalfClicked(updatedIsHalfClicked);
diff --git a/src/components/Trip/TripInfo.tsx b/src/components/Trip/TripInfo.tsx
index 7e753878..72b02f76 100644
--- a/src/components/Trip/TripInfo.tsx
+++ b/src/components/Trip/TripInfo.tsx
@@ -26,7 +26,7 @@ const ShareList = () => {
<>
- {members.map((member: any, index: number) => {
+ {members.map((member: TripMemeberInfo, index: number) => {
return (
{
- {members?.map((member: any, index: number) => (
+ {members?.map((member: TripMemeberInfo, index: number) => (
{member.profileImageUrl &&
member.profileImageUrl !== 'http://asiduheimage.jpg' ? (
diff --git a/src/components/Trip/TripParticipant.tsx b/src/components/Trip/TripParticipant.tsx
index d114a6d5..28938a6f 100644
--- a/src/components/Trip/TripParticipant.tsx
+++ b/src/components/Trip/TripParticipant.tsx
@@ -7,9 +7,11 @@ interface ParticipantStatusProps {
status: string;
}
-const ParticipantList: React.FC<{ infos: any[] }> = ({ infos }) => (
+const ParticipantList: React.FC<{ infos: TripSurveySetMemberInfo[] }> = ({
+ infos,
+}) => (
- {infos.map((info: any) => (
+ {infos.map((info: TripSurveySetMemberInfo) => (
diff --git a/src/components/Trip/TripPreference.tsx b/src/components/Trip/TripPreference.tsx
index bcc94302..16749894 100644
--- a/src/components/Trip/TripPreference.tsx
+++ b/src/components/Trip/TripPreference.tsx
@@ -14,19 +14,19 @@ import { useGetTripsAuthority } from '@hooks/useGetTripsAuthority';
import { useNavigate } from 'react-router-dom';
import { getMember } from '@api/member';
-interface RatioBarParams {
+type RatioBarParams = {
value: number;
total: number;
color: string;
label1: string;
label2: string;
-}
+};
-interface PercentageParams {
+type PercentageParams = {
value: number;
total: number;
color: string;
-}
+};
const TripPreferenceButton: React.FC = () => {
const { tripAuthority } = useGetTripsAuthority();
diff --git a/src/components/Trip/TripRealtimeMember.tsx b/src/components/Trip/TripRealtimeMember.tsx
index c57afe5a..db5a77ea 100644
--- a/src/components/Trip/TripRealtimeMember.tsx
+++ b/src/components/Trip/TripRealtimeMember.tsx
@@ -6,7 +6,6 @@ import { Navigation } from 'swiper/modules';
const TripRealtimeMember = () => {
const { tripMember } = useContext(socketContext);
-
const tripMemberData = tripMember?.data;
return (
@@ -15,7 +14,7 @@ const TripRealtimeMember = () => {
slidesPerView={5}
navigation={true}
modules={[Navigation]}
- className="w-[100vw]items-center flex max-w-[375px] justify-center">
+ className="flex w-[100vw] max-w-[375px] items-center justify-center">
{tripMemberData?.tripMembers?.map((member) => {
const isConnected = member?.connected;
const thumbnailUrl = member?.thumbnailUrl;
diff --git a/src/components/common/modal/Modal.tsx b/src/components/common/modal/Modal.tsx
index 8296f7bc..340f72e7 100644
--- a/src/components/common/modal/Modal.tsx
+++ b/src/components/common/modal/Modal.tsx
@@ -1,4 +1,4 @@
-import React from 'react';
+import React, { ReactNode } from 'react';
import Modal from 'react-modal';
import { modalChildrenState } from '@recoil/modal';
import { useRecoilValue } from 'recoil';
@@ -6,7 +6,7 @@ import { useRecoilValue } from 'recoil';
interface ModalProps {
isOpen: boolean;
closeModal: () => void;
- children: any;
+ children: ReactNode;
}
const ModalComponent: React.FC
= ({
diff --git a/src/components/common/toastpopup/ToastPopUp.tsx b/src/components/common/toastpopup/ToastPopUp.tsx
index 4dbf53ca..004ebacd 100644
--- a/src/components/common/toastpopup/ToastPopUp.tsx
+++ b/src/components/common/toastpopup/ToastPopUp.tsx
@@ -51,7 +51,7 @@ const ToastPopUp: React.FC = ({ noun, verb }) => {
{noun}
- {particle} {verb}되었습니다.
+ {particle} {verb}되었어요.
);
diff --git a/src/pages/signup/signupSuccess.page.tsx b/src/pages/signup/signupSuccess.page.tsx
index c7adcb3e..82eeb663 100644
--- a/src/pages/signup/signupSuccess.page.tsx
+++ b/src/pages/signup/signupSuccess.page.tsx
@@ -11,14 +11,14 @@ const SignupSuccess = () => {
- 환영합니다!
+ 만나서 반가워요!
- 가입이 완료되었습니다.
+ 가입이 완료되었어요.
- 위플랜플랜스 회원이 되신 것을 환영합니다.
+ 위플랜플랜스에서 여행 계획을 세워볼까요?
- 여행 취향과 프로필을 등록해주세요!
+ 여행 취향과 프로필을 등록하면 도움이 될 거예요.
diff --git a/src/recoil/review.ts b/src/recoil/review.ts
index 1c9753e1..4c7b0156 100644
--- a/src/recoil/review.ts
+++ b/src/recoil/review.ts
@@ -1,6 +1,6 @@
import { atom } from 'recoil';
-interface ReviewRequest {
+export interface ReviewRequest {
tourItemId: number;
rating: number;
keywords: Keyword[];