diff options
| author | AAGaming <aa@bigdumb.gq> | 2022-05-20 18:13:31 -0400 |
|---|---|---|
| committer | AAGaming <aa@bigdumb.gq> | 2022-05-20 18:13:31 -0400 |
| commit | 569f8b8707636cb52d9b89278c28150d668175db (patch) | |
| tree | 28fdb066bb92b2986756c85adf8fe99fa7be1d9d /src/index.tsx | |
| parent | 5a6001026860aca724bf5aa871da93a5edabe12c (diff) | |
| download | decky-bazzite-buddy-569f8b8707636cb52d9b89278c28150d668175db.tar.gz decky-bazzite-buddy-569f8b8707636cb52d9b89278c28150d668175db.zip | |
fix dependencies, edit rollup and ts config, switch jsx runtime, use pnpm lockfiles
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/index.tsx b/src/index.tsx index f10ca4f..d77e8cf 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5,9 +5,10 @@ import { MenuItem, ServerAPI, showModal, - staticClasses, + staticClasses } from "decky-frontend-lib"; import { VFC } from "react"; +import * as React from "react"; // JSX needs this, since React < 17.0.0 doesn't support the JSX runtime. import { FaShip } from "react-icons/fa"; // interface AddMethodArgs { @@ -51,7 +52,7 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => { ); }; -export default definePlugin((serverApi) => { +export default definePlugin((serverApi: ServerAPI) => { return { title: <div className={staticClasses.Title}>Example Plugin</div>, content: <Content serverAPI={serverApi} />, |
