From 41bad09587837bfa79bdaf5a075379b958e00c4e Mon Sep 17 00:00:00 2001
From: amsyarasyiq <82711525+amsyarasyiq@users.noreply.github.com>
Date: Thu, 27 Apr 2023 15:36:21 +0800
Subject: [PATCH] ui(RP): add preview and force updater
---
plugins/Last.fm/src/Settings.tsx | 1 -
plugins/RichPresence/src/ConfigEditor.tsx | 17 +++++++++++++-
plugins/RichPresence/src/Settings.tsx | 27 +++++++++++++++++++++++
3 files changed, 43 insertions(+), 2 deletions(-)
diff --git a/plugins/Last.fm/src/Settings.tsx b/plugins/Last.fm/src/Settings.tsx
index a0126e0..128defd 100644
--- a/plugins/Last.fm/src/Settings.tsx
+++ b/plugins/Last.fm/src/Settings.tsx
@@ -30,7 +30,6 @@ function UpdateButton() {
return
UPDATE
;
-
}
export default function Settings() {
diff --git a/plugins/RichPresence/src/ConfigEditor.tsx b/plugins/RichPresence/src/ConfigEditor.tsx
index 7fd77f4..8345f55 100644
--- a/plugins/RichPresence/src/ConfigEditor.tsx
+++ b/plugins/RichPresence/src/ConfigEditor.tsx
@@ -1,13 +1,18 @@
+
+import { findByProps, findByStoreName } from "@vendetta/metro";
import { React, stylesheet } from "@vendetta/metro/common";
import { storage } from "@vendetta/plugin";
import { useProxy } from "@vendetta/storage";
import { semanticColors } from "@vendetta/ui";
-import { Forms } from "@vendetta/ui/components";
+import { Button, Forms } from "@vendetta/ui/components";
import { ScrollView } from "react-native";
const { FormSection, FormInput, FormRow, FormSwitch, FormText } = Forms;
+const UserStore = findByStoreName("UserStore");
+const profiles = findByProps("showUserProfile");
+
const styles = stylesheet.createThemedStyleSheet({
subText: {
fontSize: 14,
@@ -25,6 +30,16 @@ export default function ConfigEditor({ selection }: { selection: string }) {
return (
+