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/Contact to ts

kruzhambusbe1fbf3980ce
diff --git a/src/pages/Contact/index.jsx b/src/pages/Contact/index.tsx
similarity index 91%
rename from src/pages/Contact/index.jsx
rename to src/pages/Contact/index.tsx
index 0871f563b..fddb4a1a0 100644
--- a/src/pages/Contact/index.jsx
+++ b/src/pages/Contact/index.tsx
@@ -7,8 +7,10 @@ import {
} from 'redux/constants'
import Title from 'components/Title'
-const Contact = () => {
- const { t } = useTranslation('common')
+const Contact = (): JSX.Element => {
+ const { t }: {
+ t: (key: string) => string
+ } = useTranslation('common')
return (
<Title title={t('titles.contact')}>
@@ -23,6 +25,7 @@ const Contact = () => {
<ol className='list-decimal ml-5 sm:ml-10'>
<li className='mt-1'>
<Trans
+ // @ts-ignore
t={t}
i18nKey='contact.ways.email'
values={{ email: CONTACT_EMAIL }}
@@ -33,6 +36,7 @@ const Contact = () => {
</li>
<li className='mt-1'>
<Trans
+ // @ts-ignore
t={t}
i18nKey='contact.ways.twitter'
values={{ twitter: TWITTER_USERNAME }}
@@ -43,6 +47,7 @@ const Contact = () => {
</li>
<li className='mt-1'>
<Trans
+ // @ts-ignore
t={t}
i18nKey='contact.ways.discord'
components={{