diff options
| author | botato <63275405+botatooo@users.noreply.github.com> | 2022-07-03 02:14:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-02 22:14:43 -0400 |
| commit | 085aacea068dccda170045715ee41dfbfbf44f00 (patch) | |
| tree | 58acf2195019f36d75fa11beb31425ad4d3ce515 /frontend/src/plugin-loader.tsx | |
| parent | ee8aa98446773a617e70b8fd793a1d81a1d33472 (diff) | |
| download | decky-loader-085aacea068dccda170045715ee41dfbfbf44f00.tar.gz decky-loader-085aacea068dccda170045715ee41dfbfbf44f00.zip | |
Use deckyState in uninstall menu (fixes #98) (#100)
Diffstat (limited to 'frontend/src/plugin-loader.tsx')
| -rw-r--r-- | frontend/src/plugin-loader.tsx | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/frontend/src/plugin-loader.tsx b/frontend/src/plugin-loader.tsx index fc48fdd9..17b3ce15 100644 --- a/frontend/src/plugin-loader.tsx +++ b/frontend/src/plugin-loader.tsx @@ -44,11 +44,13 @@ class PluginLoader extends Logger { }); this.routerHook.addRoute('/decky/store', () => <StorePage />); - this.routerHook.addRoute('/decky/settings', () => <SettingsPage />); - } - - public getPlugins() { - return this.plugins; + this.routerHook.addRoute('/decky/settings', () => { + return ( + <DeckyStateContextProvider deckyState={this.deckyState}> + <SettingsPage /> + </DeckyStateContextProvider> + ); + }); } public addPluginInstallPrompt(artifact: string, version: string, request_id: string, hash: string) { |
