From 466cecda5f3f48ab89e5731ecbab1c33ed9b96fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Curcio?= Date: Tue, 31 Jul 2018 11:11:54 -0300 Subject: [PATCH] Adding the mutation --- .../components/Permalink/PermalinkView.tsx | 10 +-- .../containers/PermalinkViewContainer.tsx | 76 ++++++++++++------- src/core/client/stream/local/constants.ts | 1 + .../stream/mutations/SetCommentIDMutation.ts | 21 +++++ src/core/client/stream/mutations/index.ts | 1 + 5 files changed, 76 insertions(+), 33 deletions(-) create mode 100644 src/core/client/stream/mutations/SetCommentIDMutation.ts diff --git a/src/core/client/stream/components/Permalink/PermalinkView.tsx b/src/core/client/stream/components/Permalink/PermalinkView.tsx index 2e693e56c..ae9f7f6ae 100644 --- a/src/core/client/stream/components/Permalink/PermalinkView.tsx +++ b/src/core/client/stream/components/Permalink/PermalinkView.tsx @@ -6,14 +6,16 @@ import { Button, Flex, Typography } from "talk-ui/components"; import CommentContainer from "../../containers/CommentContainer"; import * as styles from "./PermalinkView.css"; -export interface InnerProps { +export interface PermalinkViewProps { comment: {} | null; assetURL: string | null; + onShowAllComments: () => void; } -const PermalinkView: StatelessComponent = ({ +const PermalinkView: StatelessComponent = ({ assetURL, comment, + onShowAllComments, }) => { if (comment) { return ( @@ -23,9 +25,7 @@ const PermalinkView: StatelessComponent = ({