hensei-web/components/about/RoadmapPage/index.tsx
Justin Edmund b34cc8a4eb refactor: migrate all components from next-i18next to next-intl
- Update all component imports from useTranslation to useTranslations
- Replace react-i18next and next-i18next imports with next-intl
- Convert Trans components to t.rich() for rich text formatting
- Update all translation hook usage to next-intl API

This affects 80+ component files across the codebase including:
- Character, weapon, summon components
- Auth modals (login, signup, account)
- Party management components
- Filter and search components
- Toast notifications
- About pages and content updates

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-02 19:48:04 -07:00

55 lines
1.5 KiB
TypeScript

import React from 'react'
import { useTranslations } from 'next-intl'
import classNames from 'classnames'
import LinkItem from '~components/about/LinkItem'
import GithubIcon from '~public/icons/github.svg'
import styles from './index.module.scss'
const ROADMAP_ITEMS = 6
const RoadmapPage = () => {
const { t: common } = useTranslation('common')
const { t: about } = useTranslation('about')
const classes = classNames(styles.roadmap, 'PageContent')
return (
<div className={classes}>
<h1>{common('about.segmented_control.roadmap')}</h1>
<section className={styles.notes}>
<p>{about('roadmap.blurb')}</p>
<p>{about('roadmap.link.intro')}</p>
<LinkItem
className="github"
title={about('roadmap.link.title')}
link="https://github.com/users/jedmund/projects/1/views/3"
icon={<GithubIcon />}
/>
</section>
<section className={styles.features}>
<h3
className={classNames({
[styles.priority]: true,
[styles.in_progress]: true,
})}
>
{about('roadmap.subtitle')}
</h3>
<ul>
{[...Array(ROADMAP_ITEMS)].map((e, i) => (
<li key={`roadmap-${i}`}>
<h4>{about(`roadmap.items.${i}.title`)}</h4>
<p>{about(`roadmap.items.${i}.description`)}</p>
</li>
))}
</ul>
</section>
</div>
)
}
export default RoadmapPage