(let groupIndex in ExamplePages)
| 111 | } |
| 112 | |
| 113 | for (let groupIndex in ExamplePages) { |
| 114 | const group = ExamplePages[groupIndex]; |
| 115 | const pageKeys = Object.keys(group.pages); |
| 116 | |
| 117 | for (let i = 0; i < pageKeys.length; i++) { |
| 118 | const key = pageKeys[i]; |
| 119 | const page = group.pages[key]; |
| 120 | const Component = Examples[key]; |
| 121 | |
| 122 | if (this.props.location === page.location) { |
| 123 | return ( |
| 124 | <ExamplePage example={page}> |
| 125 | <Component /> |
| 126 | </ExamplePage> |
| 127 | ); |
| 128 | } |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | throw new Error( |
| 133 | 'Page of location ' + |
nothing calls this directly
no outgoing calls
no test coverage detected