webapp/src/components/Views/FeedSettings.tsx
Ilya Y a2382344d2
Hotfix/deploy error fix (#238)
* clear lint errors

* test

* test

* Revert "test"

This reverts commit 53cc0ca9d7eb3ee07571c6907f819172a02bf5e4.

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* test

* unused libs removed

* test

---------

Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
2023-09-27 17:33:06 +03:00

111 lines
3.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import styles from '../../styles/FeedSettings.module.scss'
import { useLocalize } from '../../context/localize'
// type FeedSettingsSearchParams = {
// by: '' | 'topics' | 'authors' | 'reacted'
// }
export const FeedSettingsView = (_props) => {
const { t } = useLocalize()
return (
<div class="container">
<h1>{t('Feed settings')}</h1>
<ul class="view-switcher">
<li class="view-switcher__item--selected">
<a href="?by=topics">{t('topics')}</a>
</li>
{/*<li>
<a href="?by=collections" onClick={() => setBy('collections')}>
{t('collections')}
</a>
</li>*/}
<li>
<a href="?by=authors">{t('authors')}</a>
</li>
<li>
<a href="?by=reacted">{t('reactions')}</a>
</li>
</ul>
<div class={styles.settingsList}>
<div>
<h2>Общее</h2>
</div>
<div>
<label for="checkbox1">Комментарии к&nbsp;моим постам</label>
<div>
<input type="checkbox" name="checkbox1" id="checkbox1" />
<label for="checkbox1" />
</div>
<div>
<input
type="checkbox"
name="checkbox1-notification"
id="checkbox1-notification"
class="notifications-checkbox"
/>
<label for="checkbox1-notification" />
</div>
</div>
<div>
<label for="checkbox2">новые подписчики</label>
<div>
<input type="checkbox" name="checkbox2" id="checkbox2" />
<label for="checkbox2" />
</div>
<div>
<input
type="checkbox"
name="checkbox2-notification"
id="checkbox2-notification"
class="notifications-checkbox"
/>
<label for="checkbox2-notification" />
</div>
</div>
<div>
<label for="checkbox3">добавление моих текстов в&nbsp;коллекции</label>
<div>
<input type="checkbox" name="checkbox3" id="checkbox3" />
<label for="checkbox3" />
</div>
<div>
<input
type="checkbox"
name="checkbox3-notification"
id="checkbox3-notification"
class="notifications-checkbox"
/>
<label for="checkbox3-notification" />
</div>
</div>
<div>
<h2>Мои подписки</h2>
</div>
<div>
<label for="checkbox4">добавление моих текстов в&nbsp;коллекции</label>
<div>
<input type="checkbox" name="checkbox4" id="checkbox4" />
<label for="checkbox4" />
</div>
<div>
<input
type="checkbox"
name="checkbox4-notification"
id="checkbox4-notification"
class="notifications-checkbox"
/>
<label for="checkbox4-notification" />
</div>
</div>
</div>
</div>
)
}