Fix roadmap page useTranslation error
- Change useTranslation to useTranslations (correct next-intl hook) - Add 'use client' directive to RoadmapPage component 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
04b2c0a6b2
commit
f205e8fed0
1 changed files with 4 additions and 2 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
|
'use client'
|
||||||
|
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
|
||||||
import { useTranslations } from 'next-intl'
|
import { useTranslations } from 'next-intl'
|
||||||
|
|
@ -11,8 +13,8 @@ import styles from './index.module.scss'
|
||||||
const ROADMAP_ITEMS = 6
|
const ROADMAP_ITEMS = 6
|
||||||
|
|
||||||
const RoadmapPage = () => {
|
const RoadmapPage = () => {
|
||||||
const { t: common } = useTranslation('common')
|
const common = useTranslations('common')
|
||||||
const { t: about } = useTranslation('about')
|
const about = useTranslations('about')
|
||||||
|
|
||||||
const classes = classNames(styles.roadmap, 'PageContent')
|
const classes = classNames(styles.roadmap, 'PageContent')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue