mirror of
https://github.com/wassname/talk.git
synced 2026-06-30 01:41:13 +08:00
36 lines
755 B
JavaScript
36 lines
755 B
JavaScript
import MemberSinceInfo from './containers/MemberSinceInfo';
|
|
import translations from './translations.yml';
|
|
import {gql} from 'react-apollo';
|
|
|
|
export default {
|
|
slots: {
|
|
authorMenuInfos: [MemberSinceInfo]
|
|
},
|
|
translations,
|
|
fragments: {
|
|
CreateCommentResponse: gql`
|
|
fragment TalkMemberSince_CreateCommentResponse on CreateCommentResponse {
|
|
comment {
|
|
user {
|
|
created_at
|
|
}
|
|
}
|
|
}`,
|
|
},
|
|
mutations: {
|
|
PostComment: () => ({
|
|
optimisticResponse: {
|
|
createComment: {
|
|
comment: {
|
|
user: {
|
|
created_at: new Date(),
|
|
__typename: 'User'
|
|
},
|
|
__typename: 'Comment'
|
|
}
|
|
},
|
|
},
|
|
}),
|
|
},
|
|
};
|