@@ -43,7 +43,7 @@ export function HeritageCard({
4343 onClickItem ?: ( id : number ) => void ;
4444} ) {
4545 const { locale } = useLocale ( ) ;
46- const t = useText ( ) ;
46+ const text = useText ( ) ;
4747
4848 const goDetail = ( ) => {
4949 if ( ! onClickItem ) return ;
@@ -79,7 +79,7 @@ export function HeritageCard({
7979 />
8080 ) : (
8181 < div className = "grid h-56 w-full place-items-center bg-zinc-100 text-sm text-zinc-500 dark:bg-zinc-800 dark:text-zinc-400 sm:h-64 lg:h-72" >
82- { t . noImage }
82+ { text . noImage }
8383 </ div >
8484 ) }
8585
@@ -88,7 +88,7 @@ export function HeritageCard({
8888 { item . isEndangered && (
8989 < div className = "absolute right-3 bottom-3" >
9090 < span className = "inline-flex items-center rounded-md bg-red-600 px-2 py-1 text-xs font-bold text-white shadow-sm" >
91- { t . danger }
91+ { text . danger }
9292 </ span >
9393 </ div >
9494 ) }
@@ -106,7 +106,7 @@ export function HeritageCard({
106106 { item . category && (
107107 < div className = "flex flex-col gap-1" >
108108 < span className = "text-[10px] uppercase tracking-wider text-zinc-500 dark:text-zinc-400 font-bold" >
109- { t . heritageCategory }
109+ { text . heritageCategory }
110110 </ span >
111111 < div >
112112 < TagChip > { item . category } </ TagChip >
@@ -117,7 +117,7 @@ export function HeritageCard({
117117 { criteria . length > 0 && (
118118 < div className = "flex flex-col gap-1" >
119119 < span className = "text-[10px] uppercase tracking-wider text-zinc-500 dark:text-zinc-400 font-bold" >
120- { t . criteria }
120+ { text . criteria }
121121 </ span >
122122 < div className = "flex flex-wrap gap-1.5" >
123123 { criteria . map ( ( c : CriteriaCode ) => (
@@ -139,7 +139,7 @@ export function HeritageCard({
139139 { desc }
140140 </ p >
141141 ) : (
142- < p className = "text-sm text-zinc-500 dark:text-zinc-400" > { t . noOverview } </ p >
142+ < p className = "text-sm text-zinc-500 dark:text-zinc-400" > { text . noOverview } </ p >
143143 ) }
144144 < div className = "mt-auto flex items-center justify-between pt-2 border-t border-zinc-100 dark:border-zinc-800" >
145145 < span className = "text-xs text-zinc-500 dark:text-zinc-400" aria-hidden = "true" >
@@ -150,7 +150,7 @@ export function HeritageCard({
150150 onClick = { handleViewDetailClick }
151151 className = "inline-flex items-center gap-1 text-sm font-medium text-indigo-600 hover:underline dark:text-indigo-400"
152152 >
153- { t . viewDetails } < span > →</ span >
153+ { text . viewDetails } < span > →</ span >
154154 </ button >
155155 </ div >
156156 </ div >
0 commit comments