From a493e141125bdadfb11a292af6610990a36d0f2d Mon Sep 17 00:00:00 2001 From: byeoon <47872200+byeoon@users.noreply.github.com> Date: Thu, 24 Oct 2024 14:11:27 +0000 Subject: [PATCH] test plugin card --- src/ui/settings/components/PluginCard.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ui/settings/components/PluginCard.tsx b/src/ui/settings/components/PluginCard.tsx index 8c4691af..e9f03d39 100644 --- a/src/ui/settings/components/PluginCard.tsx +++ b/src/ui/settings/components/PluginCard.tsx @@ -11,6 +11,8 @@ import Card, { CardWrapper } from "@ui/settings/components/Card"; const { showSimpleActionSheet } = findByProps("showSimpleActionSheet"); const { hideActionSheet } = findByProps("openLazy", "hideActionSheet"); +const { TextStyleSheet } = findByProps("TextStyleSheet"); + async function stopThenStart(plugin: Plugin, callback: Function) { if (plugin.enabled) stopPlugin(plugin.id, false); callback(); @@ -29,7 +31,7 @@ export default function PluginCard({ item: plugin, index }: CardWrapper) return ( i.name).join(", ")}`} headerIcon={plugin.manifest.vendetta?.icon || "ic_application_command_24px"} toggleType="switch" toggleValue={plugin.enabled} @@ -40,7 +42,7 @@ export default function PluginCard({ item: plugin, index }: CardWrapper) showToast((e as Error).message); } }} - descriptionLabel={`${plugin.manifest.description} \n\nAuthors: ${authors.map(i => i.name).join(", ")}`} + descriptionLabel={`${plugin.manifest.description}`} overflowTitle={plugin.manifest.name} overflowActions={[ { @@ -77,7 +79,7 @@ export default function PluginCard({ item: plugin, index }: CardWrapper) options: [ // TODO: add logic { label: plugin.manifest.authors[0].name, onPress: () => Profiles.showUserProfile({ userId: plugin.manifest.authors[0]?.id }) }, - { label: "User2",onPress: () => showToast("Test 2") }, + { label: plugin.manifest.authors[1]?.name,onPress: () => showToast("Working on being able to async load other profiles.") }, ], }) }