From 78a343169cba2127a33cd0671a15c9250f19eba4 Mon Sep 17 00:00:00 2001 From: "hermes-seaeye[bot]" <307254004+hermes-seaeye[bot]@users.noreply.github.com> Date: Fri, 24 Jul 2026 18:14:17 +0000 Subject: [PATCH] fmt(js): `npm run fix` on merge (#70914) Co-authored-by: github-actions[bot] --- apps/desktop/src/app/webhooks/index.tsx | 28 ++++--------------- apps/desktop/src/i18n/en.ts | 3 +- apps/desktop/src/i18n/zh-hant.ts | 3 +- apps/desktop/src/i18n/zh.ts | 3 +- .../src/lib/desktop-remote-auth.test.ts | 11 ++++---- 5 files changed, 14 insertions(+), 34 deletions(-) diff --git a/apps/desktop/src/app/webhooks/index.tsx b/apps/desktop/src/app/webhooks/index.tsx index 53d760e2f79b..9d03f00e0533 100644 --- a/apps/desktop/src/app/webhooks/index.tsx +++ b/apps/desktop/src/app/webhooks/index.tsx @@ -16,13 +16,7 @@ import { DialogTitle } from '@/components/ui/dialog' import { Input } from '@/components/ui/input' -import { - Select, - SelectContent, - SelectItem, - SelectTrigger, - SelectValue -} from '@/components/ui/select' +import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select' import { Textarea } from '@/components/ui/textarea' import { createWebhook, @@ -259,9 +253,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) { current ? { ...current, - subscriptions: current.subscriptions.map(s => - s.name === subName ? { ...s, enabled: nextEnabled } : s - ) + subscriptions: current.subscriptions.map(s => (s.name === subName ? { ...s, enabled: nextEnabled } : s)) } : current ) @@ -409,9 +401,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) { title={sub.name} /> ))} - {visible.length === 0 && ( -

{w.empty}

- )} + {visible.length === 0 &&

{w.empty}

} { @@ -421,11 +411,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) { /> - {selectedSub ? ( - - ) : ( - - )} + {selectedSub ? : } )} @@ -441,11 +427,7 @@ export function WebhooksView({ onClose }: WebhooksViewProps) { {created ? (
} title={w.webhookUrl} wide /> - } - title={w.secretOnce} - wide - /> + } title={w.secretOnce} wide />