Skip to content

Commit

Permalink
file :: 네이밍 체인지
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Nov 17, 2023
1 parent 267d06d commit 188ff36
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions src/components/SuggestionHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,23 @@

import { Icon } from "@team-return/design-system";
import { MyProfile } from "@/apis/students";
import Link from "next/link";

interface PropsType {
listType: "Company" | "Recruitments" | "BookMark";
}

export default function SuggestionHeader({ listType }: PropsType) {
const { data } = MyProfile();
const fix_data = {

const suggestionHeaderDummy = {
Company: {
title: "🏢 이런 기업은 어떠세요?",
router: "/company",
router: "/companies",
},
Recruitments: {
title: `👩‍💻 ${data?.data.student_name || '사용자'}님의 관심 분야에요`,
router: "/recruitements",
title: `👩‍💻 ${data?.data.student_name || "사용자"}님의 관심 분야에요`,
router: "/recruitments",
},
BookMark: {
title: "📌 내가 저장한 모집의뢰서",
Expand All @@ -26,12 +27,17 @@ export default function SuggestionHeader({ listType }: PropsType) {
return (
<header className="flex mb-[12px]">
<div className="flex gap-[10px] items-center text-h5 leading-h5 font-b">
<p>{fix_data[listType].title}</p>
<p>{suggestionHeaderDummy[listType].title}</p>
</div>
<button className="w-[120px] h-[32px] flex items-end justify-center text-b3 leading-b3 text-[#7f7f7f] font-m bg-none border-none cursor-pointer">
전체보기
<Icon icon="Chevron" direction="right" size={18} color="gray60" />
</button>
{listType !== "BookMark" && (
<Link
href={suggestionHeaderDummy[listType].router}
className="w-[120px] h-[32px] flex items-end justify-center text-b3 leading-b3 text-[#7f7f7f] font-m bg-none border-none cursor-pointer"
>
전체보기
<Icon icon="Chevron" direction="right" size={18} color="gray60" />
</Link>
)}
</header>
);
}

0 comments on commit 188ff36

Please sign in to comment.