@@ -4,17 +4,18 @@ import { Tag } from "@/backend/models/domain-models";
44import * as articleActions from "@/backend/services/article.actions" ;
55import ArticleCard from "@/components/ArticleCard" ;
66import VisibilitySensor from "@/components/VisibilitySensor" ;
7- import _t from "@/i18n/_t " ;
7+ import { useTranslation } from "@/i18n/use-translation " ;
88import { readingTime } from "@/lib/utils" ;
99import getFileUrl from "@/utils/getFileUrl" ;
1010import { useInfiniteQuery } from "@tanstack/react-query" ;
11- import { useMemo } from "react" ;
11+ import React , { useMemo } from "react" ;
1212
1313interface TagArticleFeedProps {
1414 tag : Tag ;
1515}
1616
1717const TagArticleFeed : React . FC < TagArticleFeedProps > = ( { tag } ) => {
18+ const { _t } = useTranslation ( ) ;
1819 const tagFeedQuery = useInfiniteQuery ( {
1920 queryKey : [ "tag-articles" , tag . id ] ,
2021 queryFn : ( { pageParam } ) =>
@@ -43,10 +44,10 @@ const TagArticleFeed: React.FC<TagArticleFeedProps> = ({ tag }) => {
4344 if ( tagFeedQuery . isPending ) {
4445 return (
4546 < div className = "flex flex-col gap-10 mt-2" >
46- < div className = "h-56 bg-muted animate-pulse mx-4" />
47- < div className = "h-56 bg-muted animate-pulse mx-4" />
48- < div className = "h-56 bg-muted animate-pulse mx-4" />
49- < div className = "h-56 bg-muted animate-pulse mx-4" />
47+ < div className = "h-56 bg-muted animate-pulse mx-4" suppressHydrationWarning = { true } />
48+ < div className = "h-56 bg-muted animate-pulse mx-4" suppressHydrationWarning = { true } />
49+ < div className = "h-56 bg-muted animate-pulse mx-4" suppressHydrationWarning = { true } />
50+ < div className = "h-56 bg-muted animate-pulse mx-4" suppressHydrationWarning = { true } />
5051 </ div >
5152 ) ;
5253 }
0 commit comments