payload: {"action":"created","comment":{"url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments/282324238","pull_request_review_id":235381409,"id":282324238,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4MjMyNDIzOA==","diff_hunk":"@@ -0,0 +1,67 @@\n+import React from 'react'\n+import { InjectedIntl, injectIntl } from 'react-intl'\n+import { Route, RouteComponentProps, Switch, withRouter } from 'react-router'\n+\n+import ColorsEditor from './ColorsEditor'\n+import EditorSelector from './EditorSelector'\n+\n+import { GenerateStyleSheetData } from './queries/GenerateStyleSheet'\n+\n+export const ColorsIdParam = ':id'\n+\n+export enum EditorPath {\n+  selector = '/',\n+  colors = '/colors/:id',\n+}\n+\n+interface Props {\n+  data: GenerateStyleSheetData | null\n+  hooks: {\n+    config: [TachyonsConfig, React.Dispatch<Partial<TachyonsConfig>>]\n+    editing: [boolean, React.Dispatch<React.SetStateAction<boolean>>]\n+    name: [string, React.Dispatch<React.SetStateAction<string>>]\n+  }\n+  intl: InjectedIntl\n+  onSave: () => void\n+  setStyleAsset: (asset: StyleAssetInfo) => void\n+  stopEditing: () => void\n+}\n+\n+const StyleEditorRouter: React.FunctionComponent<Props> = ({\n+  data,\n+  hooks: {\n+    config: [config, updateStyle],\n+    name: [name],\n+  },\n+  onSave,\n+  setStyleAsset,\n+  stopEditing,\n+}) => {\n+  const stylesheet = data && data.generateStyleSheet\n+  if (stylesheet) {\n+    setStyleAsset({ type: 'stylesheet', value: stylesheet })\n+  }\n+\n+  const renderEditorSelector = (_: RouteComponentProps) => (\n+    <EditorSelector {...{ config, name, onSave, stopEditing }} />","path":"react/components/EditorContainer/StoreEditor/Styles/StyleEditor/StyleEditorRouter.tsx","position":52,"original_position":46,"commit_id":"d0f60adbdd428d803a18f67555b04557b0f468b9","original_commit_id":"fe516598af254aa6fd20688dfdc6fb77725715fe","user":{"login":"athoscouto","id":7853668,"node_id":"MDQ6VXNlcjc4NTM2Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/7853668?v=4","gravatar_id":"","url":"https://api.github.com/users/athoscouto","html_url":"https://github.com/athoscouto","followers_url":"https://api.github.com/users/athoscouto/followers","following_url":"https://api.github.com/users/athoscouto/following{/other_user}","gists_url":"https://api.github.com/users/athoscouto/gists{/gist_id}","starred_url":"https://api.github.com/users/athoscouto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athoscouto/subscriptions","organizations_url":"https://api.github.com/users/athoscouto/orgs","repos_url":"https://api.github.com/users/athoscouto/repos","events_url":"https://api.github.com/users/athoscouto/events{/privacy}","received_events_url":"https://api.github.com/users/athoscouto/received_events","type":"User","site_admin":false},"body":"Ou isso ou `config={config} name={name} onSave={onSave} stopEditing={stopEditing}`\r\nNormalmente prefiro assim para evitar repetições.","created_at":"2019-05-09T03:06:11Z","updated_at":"2019-05-09T03:06:11Z","html_url":"https://github.com/vtex-apps/admin-pages/pull/177#discussion_r282324238","pull_request_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments/282324238"},"html":{"href":"https://github.com/vtex-apps/admin-pages/pull/177#discussion_r282324238"},"pull_request":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177"}},"in_reply_to_id":276766295},"pull_request":{"url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177","id":270648932,"node_id":"MDExOlB1bGxSZXF1ZXN0MjcwNjQ4OTMy","html_url":"https://github.com/vtex-apps/admin-pages/pull/177","diff_url":"https://github.com/vtex-apps/admin-pages/pull/177.diff","patch_url":"https://github.com/vtex-apps/admin-pages/pull/177.patch","issue_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/177","number":177,"state":"open","locked":false,"title":"WIP: Add typography editor","user":{"login":"athoscouto","id":7853668,"node_id":"MDQ6VXNlcjc4NTM2Njg=","avatar_url":"https://avatars2.githubusercontent.com/u/7853668?v=4","gravatar_id":"","url":"https://api.github.com/users/athoscouto","html_url":"https://github.com/athoscouto","followers_url":"https://api.github.com/users/athoscouto/followers","following_url":"https://api.github.com/users/athoscouto/following{/other_user}","gists_url":"https://api.github.com/users/athoscouto/gists{/gist_id}","starred_url":"https://api.github.com/users/athoscouto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athoscouto/subscriptions","organizations_url":"https://api.github.com/users/athoscouto/orgs","repos_url":"https://api.github.com/users/athoscouto/repos","events_url":"https://api.github.com/users/athoscouto/events{/privacy}","received_events_url":"https://api.github.com/users/athoscouto/received_events","type":"User","site_admin":false},"body":"#### What is the purpose of this pull request?\r\nTo include a typography editor on the styles editor.\r\n\r\n#### How should this be manually tested?\r\n`WIP`\r\n\r\n#### Screenshots or example usage\r\n`TO DO`\r\n\r\n#### Types of changes\r\n- [ ] Bug fix (a non-breaking change which fixes an issue)\r\n- [x] New feature (a non-breaking change which adds functionality)\r\n- [ ] Breaking change (fix or feature that would cause existing functionality to change)\r\n- [ ] Requires change to documentation, which has been updated accordingly.\r\n","created_at":"2019-04-15T19:48:56Z","updated_at":"2019-05-09T03:06:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0154387e4b5b67f646b49f7e16397c832416157c","assignee":null,"assignees":[],"requested_reviewers":[{"login":"alcar","id":8486092,"node_id":"MDQ6VXNlcjg0ODYwOTI=","avatar_url":"https://avatars3.githubusercontent.com/u/8486092?v=4","gravatar_id":"","url":"https://api.github.com/users/alcar","html_url":"https://github.com/alcar","followers_url":"https://api.github.com/users/alcar/followers","following_url":"https://api.github.com/users/alcar/following{/other_user}","gists_url":"https://api.github.com/users/alcar/gists{/gist_id}","starred_url":"https://api.github.com/users/alcar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alcar/subscriptions","organizations_url":"https://api.github.com/users/alcar/orgs","repos_url":"https://api.github.com/users/alcar/repos","events_url":"https://api.github.com/users/alcar/events{/privacy}","received_events_url":"https://api.github.com/users/alcar/received_events","type":"User","site_admin":false},{"login":"thiagomurakami","id":10400340,"node_id":"MDQ6VXNlcjEwNDAwMzQw","avatar_url":"https://avatars2.githubusercontent.com/u/10400340?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagomurakami","html_url":"https://github.com/thiagomurakami","followers_url":"https://api.github.com/users/thiagomurakami/followers","following_url":"https://api.github.com/users/thiagomurakami/following{/other_user}","gists_url":"https://api.github.com/users/thiagomurakami/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagomurakami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagomurakami/subscriptions","organizations_url":"https://api.github.com/users/thiagomurakami/orgs","repos_url":"https://api.github.com/users/thiagomurakami/repos","events_url":"https://api.github.com/users/thiagomurakami/events{/privacy}","received_events_url":"https://api.github.com/users/thiagomurakami/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177/commits","review_comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177/comments","review_comment_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/177/comments","statuses_url":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/d0f60adbdd428d803a18f67555b04557b0f468b9","head":{"label":"vtex-apps:feat/typography-editor","ref":"feat/typography-editor","sha":"d0f60adbdd428d803a18f67555b04557b0f468b9","user":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"repo":{"id":120042060,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAwNDIwNjA=","name":"admin-pages","full_name":"vtex-apps/admin-pages","private":false,"owner":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/vtex-apps/admin-pages","description":"The VTEX Pages CMS Admin","fork":false,"url":"https://api.github.com/repos/vtex-apps/admin-pages","forks_url":"https://api.github.com/repos/vtex-apps/admin-pages/forks","keys_url":"https://api.github.com/repos/vtex-apps/admin-pages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtex-apps/admin-pages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtex-apps/admin-pages/teams","hooks_url":"https://api.github.com/repos/vtex-apps/admin-pages/hooks","issue_events_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/events{/number}","events_url":"https://api.github.com/repos/vtex-apps/admin-pages/events","assignees_url":"https://api.github.com/repos/vtex-apps/admin-pages/assignees{/user}","branches_url":"https://api.github.com/repos/vtex-apps/admin-pages/branches{/branch}","tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/tags","blobs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/{sha}","languages_url":"https://api.github.com/repos/vtex-apps/admin-pages/languages","stargazers_url":"https://api.github.com/repos/vtex-apps/admin-pages/stargazers","contributors_url":"https://api.github.com/repos/vtex-apps/admin-pages/contributors","subscribers_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscribers","subscription_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscription","commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtex-apps/admin-pages/contents/{+path}","compare_url":"https://api.github.com/repos/vtex-apps/admin-pages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtex-apps/admin-pages/merges","archive_url":"https://api.github.com/repos/vtex-apps/admin-pages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtex-apps/admin-pages/downloads","issues_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues{/number}","pulls_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls{/number}","milestones_url":"https://api.github.com/repos/vtex-apps/admin-pages/milestones{/number}","notifications_url":"https://api.github.com/repos/vtex-apps/admin-pages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtex-apps/admin-pages/labels{/name}","releases_url":"https://api.github.com/repos/vtex-apps/admin-pages/releases{/id}","deployments_url":"https://api.github.com/repos/vtex-apps/admin-pages/deployments","created_at":"2018-02-02T23:24:21Z","updated_at":"2019-05-06T15:01:08Z","pushed_at":"2019-05-09T02:41:14Z","git_url":"git://github.com/vtex-apps/admin-pages.git","ssh_url":"git@github.com:vtex-apps/admin-pages.git","clone_url":"https://github.com/vtex-apps/admin-pages.git","svn_url":"https://github.com/vtex-apps/admin-pages","homepage":"","size":2098,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":14,"license":null,"forks":4,"open_issues":14,"watchers":3,"default_branch":"master"}},"base":{"label":"vtex-apps:master","ref":"master","sha":"594620ab4e449787ca5f1e1f17878b4c8e48749d","user":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"repo":{"id":120042060,"node_id":"MDEwOlJlcG9zaXRvcnkxMjAwNDIwNjA=","name":"admin-pages","full_name":"vtex-apps/admin-pages","private":false,"owner":{"login":"vtex-apps","id":12614072,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNjE0MDcy","avatar_url":"https://avatars0.githubusercontent.com/u/12614072?v=4","gravatar_id":"","url":"https://api.github.com/users/vtex-apps","html_url":"https://github.com/vtex-apps","followers_url":"https://api.github.com/users/vtex-apps/followers","following_url":"https://api.github.com/users/vtex-apps/following{/other_user}","gists_url":"https://api.github.com/users/vtex-apps/gists{/gist_id}","starred_url":"https://api.github.com/users/vtex-apps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vtex-apps/subscriptions","organizations_url":"https://api.github.com/users/vtex-apps/orgs","repos_url":"https://api.github.com/users/vtex-apps/repos","events_url":"https://api.github.com/users/vtex-apps/events{/privacy}","received_events_url":"https://api.github.com/users/vtex-apps/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/vtex-apps/admin-pages","description":"The VTEX Pages CMS Admin","fork":false,"url":"https://api.github.com/repos/vtex-apps/admin-pages","forks_url":"https://api.github.com/repos/vtex-apps/admin-pages/forks","keys_url":"https://api.github.com/repos/vtex-apps/admin-pages/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vtex-apps/admin-pages/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vtex-apps/admin-pages/teams","hooks_url":"https://api.github.com/repos/vtex-apps/admin-pages/hooks","issue_events_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/events{/number}","events_url":"https://api.github.com/repos/vtex-apps/admin-pages/events","assignees_url":"https://api.github.com/repos/vtex-apps/admin-pages/assignees{/user}","branches_url":"https://api.github.com/repos/vtex-apps/admin-pages/branches{/branch}","tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/tags","blobs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/refs{/sha}","trees_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/{sha}","languages_url":"https://api.github.com/repos/vtex-apps/admin-pages/languages","stargazers_url":"https://api.github.com/repos/vtex-apps/admin-pages/stargazers","contributors_url":"https://api.github.com/repos/vtex-apps/admin-pages/contributors","subscribers_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscribers","subscription_url":"https://api.github.com/repos/vtex-apps/admin-pages/subscription","commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/commits{/sha}","git_commits_url":"https://api.github.com/repos/vtex-apps/admin-pages/git/commits{/sha}","comments_url":"https://api.github.com/repos/vtex-apps/admin-pages/comments{/number}","issue_comment_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues/comments{/number}","contents_url":"https://api.github.com/repos/vtex-apps/admin-pages/contents/{+path}","compare_url":"https://api.github.com/repos/vtex-apps/admin-pages/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vtex-apps/admin-pages/merges","archive_url":"https://api.github.com/repos/vtex-apps/admin-pages/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vtex-apps/admin-pages/downloads","issues_url":"https://api.github.com/repos/vtex-apps/admin-pages/issues{/number}","pulls_url":"https://api.github.com/repos/vtex-apps/admin-pages/pulls{/number}","milestones_url":"https://api.github.com/repos/vtex-apps/admin-pages/milestones{/number}","notifications_url":"https://api.github.com/repos/vtex-apps/admin-pages/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vtex-apps/admin-pages/labels{/name}","releases_url":"https://api.github.com/repos/vtex-apps/admin-pages/releases{/id}","deployments_url":"https://api.github.com/repos/vtex-apps/admin-pages/deployments","created_at":"2018-02-02T23:24:21Z","updated_at":"2019-05-06T15:01:08Z","pushed_at":"2019-05-09T02:41:14Z","git_url":"git://github.com/vtex-apps/admin-pages.git","ssh_url":"git@github.com:vtex-apps/admin-pages.git","clone_url":"https://github.com/vtex-apps/admin-pages.git","svn_url":"https://github.com/vtex-apps/admin-pages","homepage":"","size":2098,"stargazers_count":3,"watchers_count":3,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":14,"license":null,"forks":4,"open_issues":14,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177"},"html":{"href":"https://github.com/vtex-apps/admin-pages/pull/177"},"issue":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/issues/177"},"comments":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/vtex-apps/admin-pages/statuses/d0f60adbdd428d803a18f67555b04557b0f468b9"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"athoscouto"}}