fix: Import useLanguageStore for language property in board pages
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -6,13 +6,15 @@ import Link from 'next/link';
|
||||
import { boardApi, BoardPostListItem, BoardCategory, BoardPostListResponse, BoardCategoryListResponse } from '@/lib/api';
|
||||
import { useAuthStore } from '@/lib/store';
|
||||
import { useTranslate } from '@/lib/useTranslate';
|
||||
import { useLanguageStore } from '@/lib/i18n';
|
||||
|
||||
export default function BoardPage() {
|
||||
const router = useRouter();
|
||||
const searchParams = useSearchParams();
|
||||
const { user, token } = useAuthStore();
|
||||
const isLoggedIn = !!token && !!user;
|
||||
const { translate, language } = useTranslate();
|
||||
const { translate } = useTranslate();
|
||||
const { language } = useLanguageStore();
|
||||
|
||||
const [posts, setPosts] = useState<BoardPostListItem[]>([]);
|
||||
const [notices, setNotices] = useState<BoardPostListItem[]>([]);
|
||||
|
||||
Reference in New Issue
Block a user