Skip to content

Commit

Permalink
Fix: 워딩 정리
Browse files Browse the repository at this point in the history
  • Loading branch information
seungjun222 committed Jan 24, 2024
1 parent a1793b4 commit 07a0db4
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/components/DetailSectionBottom/DetailReviews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export default function DetailReviews({
{modalChildren === 'MyAlert' && alertType === 'LoginReview' && (
<MyAlert
title="로그인"
content="리뷰 쓰기 시 로그인이 필요해요. 로그인하시겠어요?"
content="리뷰를 쓰려면 로그인이 필요해요. 로그인하러 가볼까요?"
/>
)}
</Modal>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Review/MyReview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function MyReview() {
<PenIcon size={50} color="#D7D7D7" />
</div>
<div className="text-md mb-2 flex justify-center font-bold text-gray4">
작성한 리뷰가 없습니다
내가 쓴 리뷰가 없어요
</div>
<div className="flex justify-center text-sm text-gray4">
다녀온 여행지의 리뷰를 남겨보세요!
Expand Down
6 changes: 1 addition & 5 deletions src/components/Review/ReviewButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ import { ratingState } from '@recoil/review';
import { useEffect, useState } from 'react';
import { useRecoilValue } from 'recoil';

interface ButtonProps {
onClick: () => void;
}

const ReviewButton = (props: ButtonProps) => {
const ReviewButton = (props: { onClick: () => void }) => {
const { onClick } = props;
const rating = useRecoilValue(ratingState);
const [isRatingValid, setIsRatingValid] = useState(false);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Review/ReviewComments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ export default function ReviewComments() {
<div className="h-[8px] bg-gray1"></div>
<div className="flex flex-col">
{commentDataLength == 0 && (
<div className="mb-4 flex flex-col items-center justify-center text-sm text-gray4">
<div>댓글이 없습니다. </div>
<div className="mt-10 flex flex-col items-center justify-center text-sm text-gray4">
<div>아직 댓글이 없어요. </div>
<div>첫 댓글을 작성해보세요!</div>
</div>
)}
Expand Down
8 changes: 4 additions & 4 deletions src/components/Trip/TripPreference.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 1 addition & 2 deletions src/components/Trip/TripRealtimeMember.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Navigation } from 'swiper/modules';

const TripRealtimeMember = () => {
const { tripMember } = useContext(socketContext);

const tripMemberData = tripMember?.data;

return (
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/components/common/toastpopup/ToastPopUp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const ToastPopUp: React.FC<ToastPopUpProps> = ({ noun, verb }) => {
<CircleCheckIcon fill="#29DDF6" className="mr-2" />
<p>
{noun}
{particle} {verb}되었습니다.
{particle} {verb}되었어요.
</p>
</div>
);
Expand Down

0 comments on commit 07a0db4

Please sign in to comment.