Last active
October 29, 2018 21:01
-
-
Save helielson/52e37395425954756e5b0158898cfca0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const profileInfoViewed = (fromComponent, profile) => { | |
const { id, name, age, homeLocation } = profile; | |
eventsAPI( | |
'ProfileInfoViewed', | |
fromComponent, | |
{ id, name, age, city: homeLocation.title } | |
); | |
}; | |
export const profileInfoViewedFragment = graphql` | |
fragment eventsProfileInfoViewedFragment on Profile { | |
id | |
age | |
name | |
homeLocation { | |
title | |
} | |
} | |
`; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment