mirror of
https://github.com/SteamDeckHomebrew/decky-plugin-template.git
synced 2025-11-15 21:07:30 -06:00
fix dependencies, edit rollup and ts config, switch jsx runtime, use pnpm lockfiles
This commit is contained in:
parent
5a60010268
commit
569f8b8707
7 changed files with 884 additions and 2513 deletions
|
|
@ -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} />,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue