Instead of ContentViewer attempts to compute file type and render appropriate viewer type, compute it on the parent RepoEditor having all file-related information at its disposal and pass it down to ContentViewer as a prop |
||
|---|---|---|
| .. | ||
| content_viewer_spec.js | ||