From d067fe6361b6bebd2d1ae4adff2cf3e49cbd99fe Mon Sep 17 00:00:00 2001 From: AAGaming Date: Thu, 27 Jun 2024 00:09:00 -0400 Subject: add some errorboundaries --- frontend/src/components/PluginView.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'frontend/src/components/PluginView.tsx') diff --git a/frontend/src/components/PluginView.tsx b/frontend/src/components/PluginView.tsx index 997e576b..07367bc3 100644 --- a/frontend/src/components/PluginView.tsx +++ b/frontend/src/components/PluginView.tsx @@ -1,4 +1,4 @@ -import { ButtonItem, Focusable, PanelSection, PanelSectionRow } from '@decky/ui'; +import { ButtonItem, ErrorBoundary, Focusable, PanelSection, PanelSectionRow } from '@decky/ui'; import { FC, useEffect, useState } from 'react'; import { useTranslation } from 'react-i18next'; import { FaEyeSlash } from 'react-icons/fa'; @@ -29,7 +29,9 @@ const PluginView: FC = () => {
- {(visible || activePlugin.alwaysRender) && activePlugin.content} + + {(visible || activePlugin.alwaysRender) && activePlugin.content} +
); -- cgit v1.2.3