-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a71d7f7
commit 29ed3a6
Showing
5 changed files
with
76 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
'use client' | ||
|
||
import { useGetCompaniesForReviewing } from "@/apis/companies" | ||
import { useRouter } from "next/navigation" | ||
|
||
export default function CompaniesForReviewing() { | ||
const { data: response, isLoading } = useGetCompaniesForReviewing(); | ||
const router = useRouter(); | ||
|
||
if(response?.companies.length === 0 || isLoading) { | ||
return ( | ||
<></> | ||
) | ||
} | ||
|
||
return ( | ||
<section className="my-10 bg-[#F0F7FF] rounded-[8px] py-4 px-5 flex justify-between"> | ||
<p className="text-b2 leading-[150%] font-m text-[#333333]">면접은 어땠나요? 후기 작성하기 </p> | ||
<div className="mt-1"> | ||
{ | ||
response.companies.map(({id, name})=>( | ||
<p className="text-right text-b3 leading-b3 font-r text-[#333333]">👉{' '} | ||
<span | ||
className="underline decoration-black decoration-[#333333] cursor-pointer" | ||
onClick={()=>{ | ||
router.push(`/companies/reviews/create/?id=${id}`) | ||
}}> | ||
{name} | ||
</span> | ||
</p> | ||
)) | ||
} | ||
</div> | ||
</section> | ||
) | ||
} |