Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

pages/Features to ts

kruzhambusabf3775f289a
diff --git a/src/pages/Features/index.jsx b/src/pages/Features/index.tsx
similarity index 92%
rename from src/pages/Features/index.jsx
rename to src/pages/Features/index.tsx
index 87c8589e4..26be72dc5 100644
--- a/src/pages/Features/index.jsx
+++ b/src/pages/Features/index.tsx
@@ -10,8 +10,12 @@ import {
} from 'redux/constants'
import routes from 'routes'
-const Features = () => {
- const { t } = useTranslation('common')
+const Features = (): JSX.Element => {
+ const { t }: {
+ t: (key: string, options?: {
+ [key: string]: string | number | boolean | undefined
+ }) => string
+ } = useTranslation('common')
return (
<Title title={t('titles.features')}>
@@ -26,6 +30,7 @@ const Features = () => {
</h3>
<p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
<Trans
+ // @ts-ignore
t={t}
i18nKey='features.feature1Content'
components={{
@@ -40,6 +45,7 @@ const Features = () => {
</h3>
<p className='text-lg text-gray-900 dark:text-gray-50 tracking-tight'>
<Trans
+ // @ts-ignore
t={t}
i18nKey='features.feature2Content'
components={{
@@ -48,8 +54,10 @@ const Features = () => {
}}
/>
</p>
-
- {_map(t('features.list', { returnObjects: true }), (feature) => (
+ {_map(t('features.list', { returnObjects: true }), (feature: {
+ name: string
+ content: string
+ }) => (
<Fragment key={feature.name}>
<h3 className='text-2xl font-normal text-gray-900 dark:text-gray-50 tracking-tight mt-4'>
{feature.name}