Setting COMMENTS as activeTab

This commit is contained in:
Belén Curcio
2018-10-01 14:33:41 -03:00
parent abb6f3aea6
commit c462bcfe68
2 changed files with 3 additions and 7 deletions
@@ -18,6 +18,7 @@ export async function commit(
return commitLocalUpdate(environment, store => {
const record = store.get(LOCAL_ID)!;
record.setValue(input.id, "commentID");
record.setValue("COMMENTS", "activeTab");
if (pym) {
// This sets the comment id on the parent url.
pym.sendMessage("setCommentID", input.id || "");
@@ -1,17 +1,12 @@
import React from "react";
import { graphql } from "react-relay";
import {
withFragmentContainer,
withLocalStateContainer,
} from "talk-framework/lib/relay";
import { withFragmentContainer } from "talk-framework/lib/relay";
import { CommentsHistoryContainer_me as CommentsData } from "talk-stream/__generated__/CommentsHistoryContainer_me.graphql";
import { CommentsHistoryContainerLocal as Local } from "talk-stream/__generated__/CommentsHistoryContainerLocal.graphql";
import CommentsHistory from "../components/CommentsHistory";
import {
SetCommentIDMutation,
withSetCommentIDMutation,
} from "talk-stream/mutations";
import CommentsHistory from "../components/CommentsHistory";
interface CommentsHistoryContainerProps {
setCommentID: SetCommentIDMutation;