From 0964715817eefb561eec678e21c08da40e2af52b Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Sat, 9 Aug 2025 20:57:23 -0400 Subject: refactor: use Decky UI components --- src/index.tsx | 154 +++++++++++++++++----------------------------------------- 1 file changed, 45 insertions(+), 109 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index ed3327f..be40c3a 100755 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,13 +1,20 @@ -import {useEffect, useState} from "react"; -import {FaClipboardList} from "react-icons/fa"; -import remarkHtml from "remark-html" -import remarkParse from "remark-parse" -import remarkGfm from "remark-gfm" -import {unified} from "unified" -import {patchPartnerEventStore} from "./PartnerEventStorePatch"; -import {staticClasses} from "@decky/ui"; -import {definePlugin} from "@decky/api" -import {fetchReleases} from "./FetchReleases"; +import { useEffect, useState } from "react"; +import { FaClipboardList } from "react-icons/fa"; +import remarkHtml from "remark-html"; +import remarkParse from "remark-parse"; +import remarkGfm from "remark-gfm"; +import { unified } from "unified"; +import { patchPartnerEventStore } from "./PartnerEventStorePatch"; +import { + staticClasses, + PanelSection, + PanelSectionRow, + ButtonItem, + Field, + SteamSpinner, +} from "@decky/ui"; +import { definePlugin } from "@decky/api"; +import { fetchReleases } from "./FetchReleases"; function Content() { const [changelogHtml, setChangelogHtml] = useState(null); @@ -64,33 +71,10 @@ function Content() { }; return ( -
-

Bazzite Release Notes

-
- - -
- {error ? ( -

- {error} -

- ) : changelogHtml ? ( -
- -
-
- ) : ( -

Loading...

- )} -
+ + + + {error ? ( + {error} + ) : changelogHtml ? ( + +
+ + ) : ( + + )} + + ); } -- cgit v1.2.3