{"action":"created","issue":{"url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/76","repository_url":"https://api.github.com/repos/gabrielbull/react-desktop","labels_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/76/comments","events_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/76/events","html_url":"https://github.com/gabrielbull/react-desktop/issues/76","id":193407042,"number":76,"title":"defaultIsPaneExpanded not working when false","user":{"login":"drew-wallace","id":7782572,"avatar_url":"https://avatars.githubusercontent.com/u/7782572?v=3","gravatar_id":"","url":"https://api.github.com/users/drew-wallace","html_url":"https://github.com/drew-wallace","followers_url":"https://api.github.com/users/drew-wallace/followers","following_url":"https://api.github.com/users/drew-wallace/following{/other_user}","gists_url":"https://api.github.com/users/drew-wallace/gists{/gist_id}","starred_url":"https://api.github.com/users/drew-wallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drew-wallace/subscriptions","organizations_url":"https://api.github.com/users/drew-wallace/orgs","repos_url":"https://api.github.com/users/drew-wallace/repos","events_url":"https://api.github.com/users/drew-wallace/events{/privacy}","received_events_url":"https://api.github.com/users/drew-wallace/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-05T04:00:29Z","updated_at":"2016-12-05T04:12:49Z","closed_at":"2016-12-05T04:12:49Z","body":"\"react\": \"15.4.1\",\r\n\"react-dom\": \"15.4.1\",\r\n\"react-desktop\": \"0.2.14\"\r\n\r\nHere's the code I used:\r\n\r\n```javascript\r\nimport React, { Component } from 'react';\r\nimport { NavPane, NavPaneItem, Text } from 'react-desktop/windows';\r\n\r\nexport default class extends Component {\r\n  static defaultProps = {\r\n\tcolor: '#cc7f29',\r\n\ttheme: 'dark',\r\n\tdefaultIsPaneExpanded: false\r\n  };\r\n\r\n  constructor() {\r\n\tsuper();\r\n\tthis.state = {\r\n\t  selected: 'Item 1'\r\n\t}\r\n  }\r\n\r\n  render() {\r\n\treturn (\r\n\t  <NavPane openLength={200} push color={this.props.color} theme={this.props.theme} defaultIsPaneExpanded={this.props.defaultIsPaneExpanded}>\r\n\t\t{this.renderItem('Item 1', 'Content 1')}\r\n\t\t{this.renderItem('Item 2', 'Content 2')}\r\n\t\t{this.renderItem('Item 3', 'Content 3')}\r\n\t  </NavPane>\r\n\t);\r\n  }\r\n\r\n  renderItem(title, content) {\r\n\treturn (\r\n\t  <NavPaneItem\r\n\t\ttitle={title}\r\n\t\ticon={this.renderIcon(title)}\r\n\t\ttheme=\"dark\"\r\n\t\tbackground=\"#ffffff\"\r\n\t\tselected={this.state.selected === title}\r\n\t\tonSelect={() => this.setState({ selected: title })}\r\n\t\tpadding=\"10px 20px\"\r\n\t\tpush\r\n\t  >\r\n\t\t<Text>{content}</Text>\r\n\t  </NavPaneItem>\r\n\t);\r\n  }\r\n\r\n  renderIcon(name) {\r\n\tconst fill = this.props.theme === 'dark' ? '#ffffff' : '#000000';\r\n\tswitch(name) {\r\n\t\tcase 'Item 1':\r\n\t\t  return (\r\n\t\t\t<svg x=\"0px\" y=\"0px\" width=\"16px\" height=\"14.9px\" viewBox=\"0 0 16 14.9\">\r\n\t\t\t  <polygon fill={fill} points=\"16,5.6 10.6,4.7 8,0 5.4,4.7 0,5.7 3.8,9.6 3.1,14.9 8,12.6 13,14.8 12.3,9.5 \"/>\r\n\t\t\t</svg>\r\n\t\t  );\r\n\t\tcase 'Item 2':\r\n\t\t  return (\r\n\t\t\t<svg x=\"0px\" y=\"0px\" width=\"16px\" height=\"13.5px\" viewBox=\"0 0 16 13.5\">\r\n\t\t\t  <path\r\n\t\t\t\tfill={fill}\r\n\t\t\t\td=\"M16,4.2C16,1.9,14.1,0,11.7,0c-1.4,0-2.6,0.6-3.4,1.6c0,0,0,0,0,0C8.3,1.7,8.1,1.8,8,1.8\r\n\t\t\t\tc-0.2,0-0.3-0.1-0.4-0.2c0,0,0,0,0,0C6.8,0.6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r\n```"},"comment":{"url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/comments/264764349","html_url":"https://github.com/gabrielbull/react-desktop/issues/76#issuecomment-264764349","issue_url":"https://api.github.com/repos/gabrielbull/react-desktop/issues/76","id":264764349,"user":{"login":"drew-wallace","id":7782572,"avatar_url":"https://avatars.githubusercontent.com/u/7782572?v=3","gravatar_id":"","url":"https://api.github.com/users/drew-wallace","html_url":"https://github.com/drew-wallace","followers_url":"https://api.github.com/users/drew-wallace/followers","following_url":"https://api.github.com/users/drew-wallace/following{/other_user}","gists_url":"https://api.github.com/users/drew-wallace/gists{/gist_id}","starred_url":"https://api.github.com/users/drew-wallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drew-wallace/subscriptions","organizations_url":"https://api.github.com/users/drew-wallace/orgs","repos_url":"https://api.github.com/users/drew-wallace/repos","events_url":"https://api.github.com/users/drew-wallace/events{/privacy}","received_events_url":"https://api.github.com/users/drew-wallace/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T04:12:49Z","updated_at":"2016-12-05T04:12:49Z","body":"Nevermind. I missed something."}}
{"actor":{"display_login":"drew-wallace"}}