{"action":"created","comment":{"url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/comments/177085798","pull_request_review_id":106896781,"id":177085798,"diff_hunk":"@@ -0,0 +1,108 @@\n+import * as React from 'react';\n+import * as cn from 'classnames';\n+import { guid, omit } from 'nav-frontend-js-utils';\n+\n+import Tab, {TabProps} from './tab';\n+\n+import 'nav-frontend-tabs-style';\n+\n+const tabsCls = (props) => cn('nav-frontend-tabs', props.className, {\n+    'nav-frontend-tabs--kompakt': props.kompakt\n+});\n+\n+export interface TabsProps {\n+    tabs: TabProps[];\n+    onChange: (index: number) => void;\n+    kompakt?: boolean;\n+}\n+\n+export interface TabsState {\n+    aktivTab: number;","path":"packages/node_modules/nav-frontend-tabs/src/tabs.tsx","position":20,"original_position":20,"commit_id":"783f6f788d7766eca105788ec165e17a1ed76464","original_commit_id":"783f6f788d7766eca105788ec165e17a1ed76464","user":{"login":"Lillebo","id":74510,"avatar_url":"https://avatars3.githubusercontent.com/u/74510?v=4","gravatar_id":"","url":"https://api.github.com/users/Lillebo","html_url":"https://github.com/Lillebo","followers_url":"https://api.github.com/users/Lillebo/followers","following_url":"https://api.github.com/users/Lillebo/following{/other_user}","gists_url":"https://api.github.com/users/Lillebo/gists{/gist_id}","starred_url":"https://api.github.com/users/Lillebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lillebo/subscriptions","organizations_url":"https://api.github.com/users/Lillebo/orgs","repos_url":"https://api.github.com/users/Lillebo/repos","events_url":"https://api.github.com/users/Lillebo/events{/privacy}","received_events_url":"https://api.github.com/users/Lillebo/received_events","type":"User","site_admin":false},"body":"Default verdi til `state.aktivTab` blir gitt av props som overskrives ved endring. Blir litt som med stegindikatoren at `onChange` krever en intern state. Men også her går det an å legge til en pure versjon senere uten state.","created_at":"2018-03-26T13:19:09Z","updated_at":"2018-03-26T13:19:09Z","html_url":"https://github.com/navikt/nav-frontend-moduler/pull/245#discussion_r177085798","pull_request_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/comments/177085798"},"html":{"href":"https://github.com/navikt/nav-frontend-moduler/pull/245#discussion_r177085798"},"pull_request":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245"}},"in_reply_to_id":177075256},"pull_request":{"url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245","id":177032166,"html_url":"https://github.com/navikt/nav-frontend-moduler/pull/245","diff_url":"https://github.com/navikt/nav-frontend-moduler/pull/245.diff","patch_url":"https://github.com/navikt/nav-frontend-moduler/pull/245.patch","issue_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/245","number":245,"state":"open","locked":false,"title":"Legger til Tabs komponent","user":{"login":"Lillebo","id":74510,"avatar_url":"https://avatars3.githubusercontent.com/u/74510?v=4","gravatar_id":"","url":"https://api.github.com/users/Lillebo","html_url":"https://github.com/Lillebo","followers_url":"https://api.github.com/users/Lillebo/followers","following_url":"https://api.github.com/users/Lillebo/following{/other_user}","gists_url":"https://api.github.com/users/Lillebo/gists{/gist_id}","starred_url":"https://api.github.com/users/Lillebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lillebo/subscriptions","organizations_url":"https://api.github.com/users/Lillebo/orgs","repos_url":"https://api.github.com/users/Lillebo/repos","events_url":"https://api.github.com/users/Lillebo/events{/privacy}","received_events_url":"https://api.github.com/users/Lillebo/received_events","type":"User","site_admin":false},"body":"<img width=\"699\" alt=\"screen shot 2018-03-22 at 14 39 40\" src=\"https://user-images.githubusercontent.com/74510/37820575-5ed440ac-2e81-11e8-8d59-891327832a16.png\">\r\n\r\n```JSX\r\n<Tabs\r\n    tabs={[\r\n        { label: 'Første side' },\r\n        { label: 'Andre side', aktiv: true },\r\n        { label: 'Tredje side' }\r\n    ]}\r\n    onChange={this.handleChange}\r\n/>\r\n```\r\n\r\n```JSX\r\n<Tabs onChange={this.handleChange}>\r\n    <Tabs.Tab aktiv>Første side</Tabs.Tab>\r\n    <Tabs.Tab>Andre side</Tabs.Tab>\r\n    <Tabs.Tab>Tredje side</Tabs.Tab>\r\n</Tabs>\r\n```","created_at":"2018-03-23T10:44:25Z","updated_at":"2018-03-26T13:19:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15f1d0e25e928032147c6c3c9c3b5d56db156e96","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245/commits","review_comments_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245/comments","review_comment_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/245/comments","statuses_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/statuses/783f6f788d7766eca105788ec165e17a1ed76464","head":{"label":"navikt:komponent/tabs-ts","ref":"komponent/tabs-ts","sha":"783f6f788d7766eca105788ec165e17a1ed76464","user":{"login":"navikt","id":11848947,"avatar_url":"https://avatars3.githubusercontent.com/u/11848947?v=4","gravatar_id":"","url":"https://api.github.com/users/navikt","html_url":"https://github.com/navikt","followers_url":"https://api.github.com/users/navikt/followers","following_url":"https://api.github.com/users/navikt/following{/other_user}","gists_url":"https://api.github.com/users/navikt/gists{/gist_id}","starred_url":"https://api.github.com/users/navikt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navikt/subscriptions","organizations_url":"https://api.github.com/users/navikt/orgs","repos_url":"https://api.github.com/users/navikt/repos","events_url":"https://api.github.com/users/navikt/events{/privacy}","received_events_url":"https://api.github.com/users/navikt/received_events","type":"Organization","site_admin":false},"repo":{"id":92277707,"name":"nav-frontend-moduler","full_name":"navikt/nav-frontend-moduler","owner":{"login":"navikt","id":11848947,"avatar_url":"https://avatars3.githubusercontent.com/u/11848947?v=4","gravatar_id":"","url":"https://api.github.com/users/navikt","html_url":"https://github.com/navikt","followers_url":"https://api.github.com/users/navikt/followers","following_url":"https://api.github.com/users/navikt/following{/other_user}","gists_url":"https://api.github.com/users/navikt/gists{/gist_id}","starred_url":"https://api.github.com/users/navikt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navikt/subscriptions","organizations_url":"https://api.github.com/users/navikt/orgs","repos_url":"https://api.github.com/users/navikt/repos","events_url":"https://api.github.com/users/navikt/events{/privacy}","received_events_url":"https://api.github.com/users/navikt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/navikt/nav-frontend-moduler","description":null,"fork":false,"url":"https://api.github.com/repos/navikt/nav-frontend-moduler","forks_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/forks","keys_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/teams","hooks_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/hooks","issue_events_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/events{/number}","events_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/events","assignees_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/assignees{/user}","branches_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/branches{/branch}","tags_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/tags","blobs_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/statuses/{sha}","languages_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/languages","stargazers_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/stargazers","contributors_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/contributors","subscribers_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/subscribers","subscription_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/subscription","commits_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/contents/{+path}","compare_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/merges","archive_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/downloads","issues_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues{/number}","pulls_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls{/number}","milestones_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/milestones{/number}","notifications_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/labels{/name}","releases_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/releases{/id}","deployments_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/deployments","created_at":"2017-05-24T09:59:09Z","updated_at":"2018-03-22T13:14:10Z","pushed_at":"2018-03-26T12:31:29Z","git_url":"git://github.com/navikt/nav-frontend-moduler.git","ssh_url":"git@github.com:navikt/nav-frontend-moduler.git","clone_url":"https://github.com/navikt/nav-frontend-moduler.git","svn_url":"https://github.com/navikt/nav-frontend-moduler","homepage":null,"size":20947,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":11,"open_issues":16,"watchers":14,"default_branch":"master"}},"base":{"label":"navikt:master","ref":"master","sha":"6bf048040bc90c7b3656bec0c342f4ae2f354fb5","user":{"login":"navikt","id":11848947,"avatar_url":"https://avatars3.githubusercontent.com/u/11848947?v=4","gravatar_id":"","url":"https://api.github.com/users/navikt","html_url":"https://github.com/navikt","followers_url":"https://api.github.com/users/navikt/followers","following_url":"https://api.github.com/users/navikt/following{/other_user}","gists_url":"https://api.github.com/users/navikt/gists{/gist_id}","starred_url":"https://api.github.com/users/navikt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navikt/subscriptions","organizations_url":"https://api.github.com/users/navikt/orgs","repos_url":"https://api.github.com/users/navikt/repos","events_url":"https://api.github.com/users/navikt/events{/privacy}","received_events_url":"https://api.github.com/users/navikt/received_events","type":"Organization","site_admin":false},"repo":{"id":92277707,"name":"nav-frontend-moduler","full_name":"navikt/nav-frontend-moduler","owner":{"login":"navikt","id":11848947,"avatar_url":"https://avatars3.githubusercontent.com/u/11848947?v=4","gravatar_id":"","url":"https://api.github.com/users/navikt","html_url":"https://github.com/navikt","followers_url":"https://api.github.com/users/navikt/followers","following_url":"https://api.github.com/users/navikt/following{/other_user}","gists_url":"https://api.github.com/users/navikt/gists{/gist_id}","starred_url":"https://api.github.com/users/navikt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navikt/subscriptions","organizations_url":"https://api.github.com/users/navikt/orgs","repos_url":"https://api.github.com/users/navikt/repos","events_url":"https://api.github.com/users/navikt/events{/privacy}","received_events_url":"https://api.github.com/users/navikt/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/navikt/nav-frontend-moduler","description":null,"fork":false,"url":"https://api.github.com/repos/navikt/nav-frontend-moduler","forks_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/forks","keys_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/teams","hooks_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/hooks","issue_events_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/events{/number}","events_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/events","assignees_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/assignees{/user}","branches_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/branches{/branch}","tags_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/tags","blobs_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/refs{/sha}","trees_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/statuses/{sha}","languages_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/languages","stargazers_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/stargazers","contributors_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/contributors","subscribers_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/subscribers","subscription_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/subscription","commits_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/commits{/sha}","git_commits_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/git/commits{/sha}","comments_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/comments{/number}","issue_comment_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/comments{/number}","contents_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/contents/{+path}","compare_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/merges","archive_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/downloads","issues_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues{/number}","pulls_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls{/number}","milestones_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/milestones{/number}","notifications_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/labels{/name}","releases_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/releases{/id}","deployments_url":"https://api.github.com/repos/navikt/nav-frontend-moduler/deployments","created_at":"2017-05-24T09:59:09Z","updated_at":"2018-03-22T13:14:10Z","pushed_at":"2018-03-26T12:31:29Z","git_url":"git://github.com/navikt/nav-frontend-moduler.git","ssh_url":"git@github.com:navikt/nav-frontend-moduler.git","clone_url":"https://github.com/navikt/nav-frontend-moduler.git","svn_url":"https://github.com/navikt/nav-frontend-moduler","homepage":null,"size":20947,"stargazers_count":14,"watchers_count":14,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":11,"open_issues":16,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245"},"html":{"href":"https://github.com/navikt/nav-frontend-moduler/pull/245"},"issue":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/245"},"comments":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/issues/245/comments"},"review_comments":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245/comments"},"review_comment":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/pulls/245/commits"},"statuses":{"href":"https://api.github.com/repos/navikt/nav-frontend-moduler/statuses/783f6f788d7766eca105788ec165e17a1ed76464"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Lillebo"}}