chore(translations): all, subscriptions, board

This commit is contained in:
plebeius.eth
2024-03-22 12:22:20 +01:00
parent 2bfefbe89f
commit e2a25b5f87
39 changed files with 162 additions and 43 deletions
+10 -2
View File
@@ -1,3 +1,4 @@
import { useState } from 'react';
import styles from './post-form.module.css';
import { useTranslation } from 'react-i18next';
@@ -7,14 +8,21 @@ export interface PostFormProps {
const PostForm = ({ address }: PostFormProps) => {
const { t } = useTranslation();
const [showForm, setShowForm] = useState(false);
return (
<>
<div className={styles.postFormButtonDesktop}>
[<button className='button'>{t('start_new_thread')}</button>]
[
<button className='button' onClick={() => setShowForm(true)}>
{t('start_new_thread')}
</button>
]
</div>
<div className={styles.postFormButtonMobile}>
<button className='button'>{t('start_new_thread')}</button>
<button className='button' onClick={() => setShowForm(!showForm)}>
{showForm ? t('close_post_form') : t('start_new_thread')}
</button>
</div>
</>
);