From adb8a84d2c313bedd6d6e46408056c3a2677ddb3 Mon Sep 17 00:00:00 2001
From: AAGaming <aa@bigdumb.gq>
Date: Sat, 28 May 2022 21:50:47 -0400
Subject: fix react

---
 src/index.tsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

(limited to 'src/index.tsx')

diff --git a/src/index.tsx b/src/index.tsx
index d77e8cf..dca7ed1 100644
--- a/src/index.tsx
+++ b/src/index.tsx
@@ -8,7 +8,6 @@ import {
   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 {
@@ -54,8 +53,8 @@ const Content: VFC<{ serverAPI: ServerAPI }> = ({}) => {
 
 export default definePlugin((serverApi: ServerAPI) => {
   return {
-    title: <div className={staticClasses.Title}>Example Plugin</div>,
-    content: <Content serverAPI={serverApi} />,
-    icon: <FaShip />,
+    title: () => <div className={staticClasses.Title}>Example Plugin</div>,
+    content: () => <Content serverAPI={serverApi} />,
+    icon: () => <FaShip />,
   };
 });
-- 
cgit v1.2.3

