Adding the mutation

This commit is contained in:
Belén Curcio
2018-07-31 11:11:54 -03:00
parent 45e25581f7
commit 466cecda5f
5 changed files with 76 additions and 33 deletions
@@ -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<InnerProps> = ({
const PermalinkView: StatelessComponent<PermalinkViewProps> = ({
assetURL,
comment,
onShowAllComments,
}) => {
if (comment) {
return (
@@ -23,9 +25,7 @@ const PermalinkView: StatelessComponent<InnerProps> = ({
<Button
variant="outlined"
color="primary"
onClick={() => {
window.location.href = assetURL;
}}
onClick={onShowAllComments}
fullWidth
>
Show all Comments