Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Fix typo on Subscription. #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Components/EventComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { graphql } from "react-apollo";
import moment from 'moment';

import QueryGetEvent from "../GraphQL/QueryGetEvent";
import SubsriptionEventComments from "../GraphQL/SubsriptionEventComments";
import SubscriptionEventComments from "../GraphQL/SubscriptionEventComments";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kayaman Thanks for doing this! I do see that the file name itself is called SubsriptionEventComments. Can you please update the name of the file as well within this PR? That way this doesn't break the sample


import NewComment from "./NewComment";

Expand Down Expand Up @@ -62,7 +62,7 @@ const EventCommentsWithData = graphql(
props: props => ({
comments: props.data.getEvent.comments,
subscribeToComments: () => props.data.subscribeToMore({
document: SubsriptionEventComments,
document: SubscriptionEventComments,
variables: {
eventId: props.ownProps.eventId,
},
Expand Down Expand Up @@ -96,4 +96,4 @@ const EventCommentsWithData = graphql(
},
)(EventComments);

export default EventCommentsWithData;
export default EventCommentsWithData;