{"action":"created","comment":{"url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/comments/244205588","pull_request_review_id":188152006,"id":244205588,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDIwNTU4OA==","diff_hunk":"@@ -0,0 +1,132 @@\n+import React from 'react';\n+import { Formik, Form, Field } from 'formik';\n+import classnames from 'classnames';\n+\n+const App = () => (\n+  <div>\n+    <Formik\n+      initialValues={{ fullname: '', email: '', password: '' }}\n+      validate={values => {\n+        let errors = {};\n+\n+        if (!values.fullname) {\n+          errors.fullname = 'Full Name is required!';\n+        }\n+\n+        if (!values.email) {\n+          errors.email = 'Email is required!';\n+        } else if (!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\\.[A-Z]{2,}$/i.test(values.email))\n+        {\n+          errors.email = 'Invalid email address';\n+        }\n+\n+        if (!values.password) {\n+           errors.password = 'Password is required!';\n+         } else if (values.password.length < 8) {\n+           errors.password = 'min 8 characters';\n+        }\n+        return errors;\n+      }}\n+      onSubmit={(values, { setSubmitting }) => {\n+        setTimeout(() => {\n+          alert(JSON.stringify(values, null, 2));\n+          setSubmitting(false);\n+        }, 400);\n+      }}\n+    >\n+      {({ isSubmitting }) => (\n+        <Form className=\"form\" >\n+          <Field component={InputComponent} />\n+          <button type=\"submit\" disabled={isSubmitting}>\n+            Create Account\n+          </button>\n+        </Form>\n+      )}\n+    </Formik>\n+  </div>\n+);\n+\n+const errorStyle = {","path":"src/App.js","position":49,"original_position":49,"commit_id":"778dcb1685ac91319f704825399bd8deae99bc9d","original_commit_id":"778dcb1685ac91319f704825399bd8deae99bc9d","user":{"login":"krzysztof4M","id":6671071,"node_id":"MDQ6VXNlcjY2NzEwNzE=","avatar_url":"https://avatars0.githubusercontent.com/u/6671071?v=4","gravatar_id":"","url":"https://api.github.com/users/krzysztof4M","html_url":"https://github.com/krzysztof4M","followers_url":"https://api.github.com/users/krzysztof4M/followers","following_url":"https://api.github.com/users/krzysztof4M/following{/other_user}","gists_url":"https://api.github.com/users/krzysztof4M/gists{/gist_id}","starred_url":"https://api.github.com/users/krzysztof4M/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krzysztof4M/subscriptions","organizations_url":"https://api.github.com/users/krzysztof4M/orgs","repos_url":"https://api.github.com/users/krzysztof4M/repos","events_url":"https://api.github.com/users/krzysztof4M/events{/privacy}","received_events_url":"https://api.github.com/users/krzysztof4M/received_events","type":"User","site_admin":false},"body":"Czemu inline style zamiast css?","created_at":"2018-12-27T18:40:17Z","updated_at":"2018-12-27T18:51:27Z","html_url":"https://github.com/mmarkowicz/FormInReact/pull/11#discussion_r244205588","pull_request_url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/comments/244205588"},"html":{"href":"https://github.com/mmarkowicz/FormInReact/pull/11#discussion_r244205588"},"pull_request":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11","id":240967148,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwOTY3MTQ4","html_url":"https://github.com/mmarkowicz/FormInReact/pull/11","diff_url":"https://github.com/mmarkowicz/FormInReact/pull/11.diff","patch_url":"https://github.com/mmarkowicz/FormInReact/pull/11.patch","issue_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/11","number":11,"state":"open","locked":false,"title":"Created staging branch","user":{"login":"mmarkowicz","id":27553151,"node_id":"MDQ6VXNlcjI3NTUzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/27553151?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarkowicz","html_url":"https://github.com/mmarkowicz","followers_url":"https://api.github.com/users/mmarkowicz/followers","following_url":"https://api.github.com/users/mmarkowicz/following{/other_user}","gists_url":"https://api.github.com/users/mmarkowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarkowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarkowicz/subscriptions","organizations_url":"https://api.github.com/users/mmarkowicz/orgs","repos_url":"https://api.github.com/users/mmarkowicz/repos","events_url":"https://api.github.com/users/mmarkowicz/events{/privacy}","received_events_url":"https://api.github.com/users/mmarkowicz/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-26T11:42:25Z","updated_at":"2018-12-27T18:51:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5ecf107d4cc8291dc2fb200af200d6790fcf2e0","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11/commits","review_comments_url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11/comments","review_comment_url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/11/comments","statuses_url":"https://api.github.com/repos/mmarkowicz/FormInReact/statuses/778dcb1685ac91319f704825399bd8deae99bc9d","head":{"label":"mmarkowicz:develop","ref":"develop","sha":"778dcb1685ac91319f704825399bd8deae99bc9d","user":{"login":"mmarkowicz","id":27553151,"node_id":"MDQ6VXNlcjI3NTUzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/27553151?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarkowicz","html_url":"https://github.com/mmarkowicz","followers_url":"https://api.github.com/users/mmarkowicz/followers","following_url":"https://api.github.com/users/mmarkowicz/following{/other_user}","gists_url":"https://api.github.com/users/mmarkowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarkowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarkowicz/subscriptions","organizations_url":"https://api.github.com/users/mmarkowicz/orgs","repos_url":"https://api.github.com/users/mmarkowicz/repos","events_url":"https://api.github.com/users/mmarkowicz/events{/privacy}","received_events_url":"https://api.github.com/users/mmarkowicz/received_events","type":"User","site_admin":false},"repo":{"id":162724916,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI3MjQ5MTY=","name":"FormInReact","full_name":"mmarkowicz/FormInReact","private":false,"owner":{"login":"mmarkowicz","id":27553151,"node_id":"MDQ6VXNlcjI3NTUzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/27553151?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarkowicz","html_url":"https://github.com/mmarkowicz","followers_url":"https://api.github.com/users/mmarkowicz/followers","following_url":"https://api.github.com/users/mmarkowicz/following{/other_user}","gists_url":"https://api.github.com/users/mmarkowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarkowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarkowicz/subscriptions","organizations_url":"https://api.github.com/users/mmarkowicz/orgs","repos_url":"https://api.github.com/users/mmarkowicz/repos","events_url":"https://api.github.com/users/mmarkowicz/events{/privacy}","received_events_url":"https://api.github.com/users/mmarkowicz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mmarkowicz/FormInReact","description":null,"fork":false,"url":"https://api.github.com/repos/mmarkowicz/FormInReact","forks_url":"https://api.github.com/repos/mmarkowicz/FormInReact/forks","keys_url":"https://api.github.com/repos/mmarkowicz/FormInReact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmarkowicz/FormInReact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmarkowicz/FormInReact/teams","hooks_url":"https://api.github.com/repos/mmarkowicz/FormInReact/hooks","issue_events_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/events{/number}","events_url":"https://api.github.com/repos/mmarkowicz/FormInReact/events","assignees_url":"https://api.github.com/repos/mmarkowicz/FormInReact/assignees{/user}","branches_url":"https://api.github.com/repos/mmarkowicz/FormInReact/branches{/branch}","tags_url":"https://api.github.com/repos/mmarkowicz/FormInReact/tags","blobs_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmarkowicz/FormInReact/statuses/{sha}","languages_url":"https://api.github.com/repos/mmarkowicz/FormInReact/languages","stargazers_url":"https://api.github.com/repos/mmarkowicz/FormInReact/stargazers","contributors_url":"https://api.github.com/repos/mmarkowicz/FormInReact/contributors","subscribers_url":"https://api.github.com/repos/mmarkowicz/FormInReact/subscribers","subscription_url":"https://api.github.com/repos/mmarkowicz/FormInReact/subscription","commits_url":"https://api.github.com/repos/mmarkowicz/FormInReact/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmarkowicz/FormInReact/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmarkowicz/FormInReact/contents/{+path}","compare_url":"https://api.github.com/repos/mmarkowicz/FormInReact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmarkowicz/FormInReact/merges","archive_url":"https://api.github.com/repos/mmarkowicz/FormInReact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmarkowicz/FormInReact/downloads","issues_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues{/number}","pulls_url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls{/number}","milestones_url":"https://api.github.com/repos/mmarkowicz/FormInReact/milestones{/number}","notifications_url":"https://api.github.com/repos/mmarkowicz/FormInReact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmarkowicz/FormInReact/labels{/name}","releases_url":"https://api.github.com/repos/mmarkowicz/FormInReact/releases{/id}","deployments_url":"https://api.github.com/repos/mmarkowicz/FormInReact/deployments","created_at":"2018-12-21T14:43:54Z","updated_at":"2018-12-26T10:39:15Z","pushed_at":"2018-12-26T11:42:26Z","git_url":"git://github.com/mmarkowicz/FormInReact.git","ssh_url":"git@github.com:mmarkowicz/FormInReact.git","clone_url":"https://github.com/mmarkowicz/FormInReact.git","svn_url":"https://github.com/mmarkowicz/FormInReact","homepage":null,"size":151,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mmarkowicz:staging","ref":"staging","sha":"f96d0919451151852fd81e7460fb74b261ad7b23","user":{"login":"mmarkowicz","id":27553151,"node_id":"MDQ6VXNlcjI3NTUzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/27553151?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarkowicz","html_url":"https://github.com/mmarkowicz","followers_url":"https://api.github.com/users/mmarkowicz/followers","following_url":"https://api.github.com/users/mmarkowicz/following{/other_user}","gists_url":"https://api.github.com/users/mmarkowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarkowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarkowicz/subscriptions","organizations_url":"https://api.github.com/users/mmarkowicz/orgs","repos_url":"https://api.github.com/users/mmarkowicz/repos","events_url":"https://api.github.com/users/mmarkowicz/events{/privacy}","received_events_url":"https://api.github.com/users/mmarkowicz/received_events","type":"User","site_admin":false},"repo":{"id":162724916,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI3MjQ5MTY=","name":"FormInReact","full_name":"mmarkowicz/FormInReact","private":false,"owner":{"login":"mmarkowicz","id":27553151,"node_id":"MDQ6VXNlcjI3NTUzMTUx","avatar_url":"https://avatars3.githubusercontent.com/u/27553151?v=4","gravatar_id":"","url":"https://api.github.com/users/mmarkowicz","html_url":"https://github.com/mmarkowicz","followers_url":"https://api.github.com/users/mmarkowicz/followers","following_url":"https://api.github.com/users/mmarkowicz/following{/other_user}","gists_url":"https://api.github.com/users/mmarkowicz/gists{/gist_id}","starred_url":"https://api.github.com/users/mmarkowicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmarkowicz/subscriptions","organizations_url":"https://api.github.com/users/mmarkowicz/orgs","repos_url":"https://api.github.com/users/mmarkowicz/repos","events_url":"https://api.github.com/users/mmarkowicz/events{/privacy}","received_events_url":"https://api.github.com/users/mmarkowicz/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mmarkowicz/FormInReact","description":null,"fork":false,"url":"https://api.github.com/repos/mmarkowicz/FormInReact","forks_url":"https://api.github.com/repos/mmarkowicz/FormInReact/forks","keys_url":"https://api.github.com/repos/mmarkowicz/FormInReact/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmarkowicz/FormInReact/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmarkowicz/FormInReact/teams","hooks_url":"https://api.github.com/repos/mmarkowicz/FormInReact/hooks","issue_events_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/events{/number}","events_url":"https://api.github.com/repos/mmarkowicz/FormInReact/events","assignees_url":"https://api.github.com/repos/mmarkowicz/FormInReact/assignees{/user}","branches_url":"https://api.github.com/repos/mmarkowicz/FormInReact/branches{/branch}","tags_url":"https://api.github.com/repos/mmarkowicz/FormInReact/tags","blobs_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmarkowicz/FormInReact/statuses/{sha}","languages_url":"https://api.github.com/repos/mmarkowicz/FormInReact/languages","stargazers_url":"https://api.github.com/repos/mmarkowicz/FormInReact/stargazers","contributors_url":"https://api.github.com/repos/mmarkowicz/FormInReact/contributors","subscribers_url":"https://api.github.com/repos/mmarkowicz/FormInReact/subscribers","subscription_url":"https://api.github.com/repos/mmarkowicz/FormInReact/subscription","commits_url":"https://api.github.com/repos/mmarkowicz/FormInReact/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmarkowicz/FormInReact/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmarkowicz/FormInReact/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmarkowicz/FormInReact/contents/{+path}","compare_url":"https://api.github.com/repos/mmarkowicz/FormInReact/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmarkowicz/FormInReact/merges","archive_url":"https://api.github.com/repos/mmarkowicz/FormInReact/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmarkowicz/FormInReact/downloads","issues_url":"https://api.github.com/repos/mmarkowicz/FormInReact/issues{/number}","pulls_url":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls{/number}","milestones_url":"https://api.github.com/repos/mmarkowicz/FormInReact/milestones{/number}","notifications_url":"https://api.github.com/repos/mmarkowicz/FormInReact/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmarkowicz/FormInReact/labels{/name}","releases_url":"https://api.github.com/repos/mmarkowicz/FormInReact/releases{/id}","deployments_url":"https://api.github.com/repos/mmarkowicz/FormInReact/deployments","created_at":"2018-12-21T14:43:54Z","updated_at":"2018-12-26T10:39:15Z","pushed_at":"2018-12-26T11:42:26Z","git_url":"git://github.com/mmarkowicz/FormInReact.git","ssh_url":"git@github.com:mmarkowicz/FormInReact.git","clone_url":"https://github.com/mmarkowicz/FormInReact.git","svn_url":"https://github.com/mmarkowicz/FormInReact","homepage":null,"size":151,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11"},"html":{"href":"https://github.com/mmarkowicz/FormInReact/pull/11"},"issue":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/11"},"comments":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/mmarkowicz/FormInReact/statuses/778dcb1685ac91319f704825399bd8deae99bc9d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"krzysztof4M"}}