On-demand auth

* auth block was moved to comment form
* if comments on page read only auth form shows in old place
* comment value in form will be saved between refreshes (it is side effect form saving comment value between unauth and auth states)
This commit is contained in:
Pavel Mineev
2020-03-12 15:44:31 -05:00
committed by Umputun
parent d85e185aa1
commit 93fd445bd4
40 changed files with 718 additions and 609 deletions
@@ -1,6 +1,5 @@
.thread {
position: relative;
overflow: hidden;
}
.thread_indented {
+3 -2
View File
@@ -24,8 +24,9 @@ interface Props {
}
const commentSelector = (id: string) => (state: StoreState) => {
const { theme, comments, childComments } = state;
const comment = comments[id];
const { theme, comments } = state;
const { allComments, childComments } = comments;
const comment = allComments[id];
const childs = childComments[id];
const collapsed = getThreadIsCollapsed(comment)(state);