Reply opens auth popup when not logged in

This commit is contained in:
Chi Vinh Le
2018-09-06 00:07:14 +02:00
parent 90a875f40e
commit 46ff3dea89
18 changed files with 165 additions and 73 deletions
@@ -8,6 +8,7 @@ import CommentContainer from "../containers/CommentContainer";
import * as styles from "./PermalinkView.css";
export interface PermalinkViewProps {
me: PropTypesOf<typeof CommentContainer>["me"];
asset: PropTypesOf<typeof CommentContainer>["asset"];
comment: PropTypesOf<typeof CommentContainer>["comment"] | null;
showAllCommentsHref: string | null;
@@ -19,6 +20,7 @@ const PermalinkView: StatelessComponent<PermalinkViewProps> = ({
comment,
asset,
onShowAllComments,
me,
}) => {
return (
<div className={styles.root}>
@@ -44,7 +46,7 @@ const PermalinkView: StatelessComponent<PermalinkViewProps> = ({
<Typography>Comment not found</Typography>
</Localized>
)}
{comment && <CommentContainer comment={comment} asset={asset} />}
{comment && <CommentContainer me={me} comment={comment} asset={asset} />}
</div>
);
};