File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,17 +14,19 @@ import { University } from "@/types/university";
1414
1515interface UniversityDetailProps {
1616 university : University ;
17+ koreanName : string ;
1718}
1819
19- const UniversityDetail = ( { university } : UniversityDetailProps ) => {
20+ const UniversityDetail = ( { university, koreanName } : UniversityDetailProps ) => {
21+ console . log ( "university" , university ) ;
2022 return (
2123 < div className = "relative" >
2224 < div className = "relative -z-10 h-60 w-full bg-blue-100" >
2325 < Image alt = "대학 이미지" src = { convertImageUrl ( university . backgroundImageUrl ) } fill className = "object-cover" />
2426 </ div >
2527 < div className = "z-30 -mt-16 rounded-t-3xl bg-white px-5" >
2628 < TitleSection
27- title = { university . formatName }
29+ title = { koreanName }
2830 subTitle = { university . englishName }
2931 logoUrl = { convertImageUrl ( university . logoImageUrl ) }
3032 />
Original file line number Diff line number Diff line change 11import { Metadata , ResolvingMetadata } from "next" ;
2- import Head from "next/head" ;
32import { notFound } from "next/navigation" ;
43
54import TopDetailNavigation from "@/components/layout/TopDetailNavigation" ;
@@ -60,7 +59,7 @@ const CollegeDetailPage = async ({ params }: CollegeDetailPageProps) => {
6059 return (
6160 < >
6261 < TopDetailNavigation title = { convertedKoreanName } />
63- < UniversityDetail university = { universityData } />
62+ < UniversityDetail koreanName = { convertedKoreanName } university = { universityData } />
6463 </ >
6564 ) ;
6665} ;
You can’t perform that action at this time.
0 commit comments