1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Convert search page to react

This commit is contained in:
Bill Thornton 2021-05-28 13:38:28 -04:00
parent c7296753af
commit 903b656f7f
7 changed files with 70 additions and 43 deletions

View file

@ -7,7 +7,7 @@ export default (view, params, { detail }) => {
if (detail.options?.pageComponent) {
import(/* webpackChunkName: "[request]" */ `./pages/${detail.options.pageComponent}`)
.then(({ default: component }) => {
ReactDOM.render(React.createElement(component), view);
ReactDOM.render(React.createElement(component, params), view);
});
}
};