Skip to content

Commit

Permalink
refactor: FeedbackType을 type 폴더로 분리
Browse files Browse the repository at this point in the history
  • Loading branch information
chlwlstlf committed Nov 26, 2024
1 parent 7b33404 commit 3f60754
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions frontend/src/@types/feedback.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { NonEmptyArray } from "@/@types/NonEmptyArray";

export type FeedbackType = "받은 피드백" | "쓴 피드백";

export interface FeedbackCardDataList {
readonly roomId: number;
readonly title: string;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { useNavigate } from "react-router-dom";
import { FeedbackType } from "@/hooks/feedback/useSelectedFeedbackData";
import Button from "@/components/common/button/Button";
import Profile from "@/components/common/profile/Profile";
import { Textarea } from "@/components/common/textarea/Textarea";
import EvaluationPointBar from "@/components/feedback/evaluationPointBar/EvaluationPointBar";
import * as S from "@/components/feedback/feedbackCard/FeedbackCard.style";
import { FeedbackCardData } from "@/@types/feedback";
import { FeedbackCardData, FeedbackType } from "@/@types/feedback";
import { ReviewInfo } from "@/@types/review";
import { HoverStyledLink } from "@/styles/common";
import { theme } from "@/styles/theme";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from "react";
import { FeedbackType } from "@/hooks/feedback/useSelectedFeedbackData";
import Carousel from "@/components/common/carousel/Carousel";
import Label from "@/components/common/label/Label";
import FeedbackCard from "@/components/feedback/feedbackCard/FeedbackCard";
import * as S from "@/components/feedback/feedbackCardList/FeedbackCardList.style";
import { FeedbackCardDataList } from "@/@types/feedback";
import { FeedbackCardDataList, FeedbackType } from "@/@types/feedback";
import { defaultCharacter } from "@/assets";
import { HoverStyledLink } from "@/styles/common";
import { theme } from "@/styles/theme";
Expand Down
3 changes: 1 addition & 2 deletions frontend/src/hooks/feedback/useSelectedFeedbackData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import {
useFetchDeliveredFeedback,
useFetchReceivedFeedback,
} from "@/hooks/queries/useFetchFeedback";

export type FeedbackType = "받은 피드백" | "쓴 피드백";
import { FeedbackType } from "@/@types/feedback";

const useSelectedFeedbackData = (initialFeedbackType: FeedbackType = "받은 피드백") => {
const [selectedFeedbackType, setSelectedFeedbackType] = useState<FeedbackType>(() => {
Expand Down

0 comments on commit 3f60754

Please sign in to comment.