Files
remark42/frontend/app/components/comment-form/index.ts
T
Pavel MineevandUmputun 7d9e8ce076 UI for email subscription (#537)
* Add api methods for subscription

* Small changes

* little changes in remark.tsx
* disallow pass className to Button and Input

* Subscribe block

* add RSS and  Email subscription drobdowns
* add hook useTheme
* unify dropdown import/export

* Change API

* rename subscribe methods
* add unsubscribe method

* Add email subscription to settings and user

* Refactor and add new steps

* render by single component
* add final step
* add unsubscribe step it user is subscribed

* Add tests

* Update subscription logic

* test without mocking redux methods but with mocking store
* update user in store after subscribe and unsubscribe
* little changes in subscription flow

* fix drobdown size

* Fix RSS subscription link for site

* fix link
* add test for RSS subscription

* Fix showing email subscription

* it don't show to unauth users
* it don't show to anonymous users
* it tested
* isUserAnonymous is a bit rewrited
* isUserAnonymous is tested

* Make Email button visible for anon users

* React X supporst Fragments thats why .babelrc changed
* disabled button is more visible
* fix hovering on disabled buttons
* create mocks for tests
*  move email dropdown to __subscribe-by-email
2020-01-08 13:55:50 -06:00

32 lines
1.3 KiB
TypeScript

export { CommentForm } from './comment-form';
import '@app/components/raw-content';
import './comment-form.scss';
import './__actions/comment-form__actions.scss';
import './__button/comment-form__button.scss';
import './__button/_type/_preview/comment-form__button_type_preview.scss';
import './__button/_type/_send/comment-form__button_type_send.scss';
import './__control-panel/comment-form__control-panel.scss';
import './__counter/comment-form__counter.scss';
import './__error/comment-form__error.scss';
import './__field/comment-form__field.scss';
import './__field-wrapper/comment-form__field-wrapper.scss';
import './__preview/comment-form__preview.scss';
import './__preview-wrapper/comment-form__preview-wrapper.scss';
import './__rss/comment-form__rss.scss';
import './__rss-link/comment-form__rss-link.scss';
import './__markdown/comment-form__markdown.scss';
import './__markdown-link/comment-form__markdown-link.scss';
import './__markdown-toolbar/comment-form__markdown-toolbar.scss';
import './__subscribe-by-email/comment-form__subscribe-by-email.scss';
import './__subscribe-by-rss/comment-form__subscribe-by-rss.scss';
import './_theme/_dark/comment-form_theme_dark.scss';
import './_theme/_light/comment-form_theme_light.scss';
import './_simple/comment-form_simple.scss';