{"action":"created","issue":{"url":"https://api.github.com/repos/cognitedata/gearbox.js/issues/575","repository_url":"https://api.github.com/repos/cognitedata/gearbox.js","labels_url":"https://api.github.com/repos/cognitedata/gearbox.js/issues/575/labels{/name}","comments_url":"https://api.github.com/repos/cognitedata/gearbox.js/issues/575/comments","events_url":"https://api.github.com/repos/cognitedata/gearbox.js/issues/575/events","html_url":"https://github.com/cognitedata/gearbox.js/pull/575","id":544349786,"node_id":"MDExOlB1bGxSZXF1ZXN0MzU4NDgyMjIw","number":575,"title":"docs(asset-details-panel):  research possibility to use Props  (#533)","user":{"login":"amevck","id":17356270,"node_id":"MDQ6VXNlcjE3MzU2Mjcw","avatar_url":"https://avatars2.githubusercontent.com/u/17356270?v=4","gravatar_id":"","url":"https://api.github.com/users/amevck","html_url":"https://github.com/amevck","followers_url":"https://api.github.com/users/amevck/followers","following_url":"https://api.github.com/users/amevck/following{/other_user}","gists_url":"https://api.github.com/users/amevck/gists{/gist_id}","starred_url":"https://api.github.com/users/amevck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amevck/subscriptions","organizations_url":"https://api.github.com/users/amevck/orgs","repos_url":"https://api.github.com/users/amevck/repos","events_url":"https://api.github.com/users/amevck/events{/privacy}","received_events_url":"https://api.github.com/users/amevck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2020-01-01T12:06:27Z","updated_at":"2020-01-01T12:12:06Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/cognitedata/gearbox.js/pulls/575","html_url":"https://github.com/cognitedata/gearbox.js/pull/575","diff_url":"https://github.com/cognitedata/gearbox.js/pull/575.diff","patch_url":"https://github.com/cognitedata/gearbox.js/pull/575.patch"},"body":"For showing auto-generated props in new addon-docs MDX, below conditions should be satisfied.\r\n\r\n1. imported interfaces/types should be in `.ts` files (not `.tsx` files).\r\n    So we have to move interfaces exported from `.tsx` files to separate `.ts` files.\r\n\r\n2. For showing props of higher-order components correctly, we have to create a new fake component that has all the same props as our component and refer that in addon-docs  `Props` component. \r\n\r\n```typescript\r\nexport const FakeAssetDetailsPanel: FC<AssetDetailsPanelProps> = () => (\r\n  <></>\r\n);\r\n```\r\n```typescript\r\n<Props of={FakeAssetDetailsPanel} />\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/cognitedata/gearbox.js/issues/comments/570048178","html_url":"https://github.com/cognitedata/gearbox.js/pull/575#issuecomment-570048178","issue_url":"https://api.github.com/repos/cognitedata/gearbox.js/issues/575","id":570048178,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MDA0ODE3OA==","user":{"login":"cognite-cicd","id":37252794,"node_id":"MDQ6VXNlcjM3MjUyNzk0","avatar_url":"https://avatars2.githubusercontent.com/u/37252794?v=4","gravatar_id":"","url":"https://api.github.com/users/cognite-cicd","html_url":"https://github.com/cognite-cicd","followers_url":"https://api.github.com/users/cognite-cicd/followers","following_url":"https://api.github.com/users/cognite-cicd/following{/other_user}","gists_url":"https://api.github.com/users/cognite-cicd/gists{/gist_id}","starred_url":"https://api.github.com/users/cognite-cicd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cognite-cicd/subscriptions","organizations_url":"https://api.github.com/users/cognite-cicd/orgs","repos_url":"https://api.github.com/users/cognite-cicd/repos","events_url":"https://api.github.com/users/cognite-cicd/events{/privacy}","received_events_url":"https://api.github.com/users/cognite-cicd/received_events","type":"User","site_admin":false},"created_at":"2020-01-01T12:12:06Z","updated_at":"2020-01-01T12:12:06Z","author_association":"NONE","body":"This PR's storybook can now be previewed at the following URL: https://pr-575.gearboxjs.preview.cogniteapp.com"}}
{"actor":{"display_login":"cognite-cicd"}}