From 299bcf9e91f31c6ee557910c45a157eca8f9a4d0 Mon Sep 17 00:00:00 2001
From: Stefano Pigozzi
Date: Mon, 9 Dec 2024 05:16:05 +0100
Subject: [PATCH] Run prettier
---
src/components/nav-menu.jsx | 7 +-
src/components/shortcuts-settings.jsx | 20 +--
src/locales/en.po | 170 +++++++++++++-------------
src/pages/public.jsx | 6 +-
src/utils/supports.js | 14 ++-
5 files changed, 114 insertions(+), 103 deletions(-)
diff --git a/src/components/nav-menu.jsx b/src/components/nav-menu.jsx
index 4e2f789f..f4c32fb0 100644
--- a/src/components/nav-menu.jsx
+++ b/src/components/nav-menu.jsx
@@ -84,9 +84,10 @@ function NavMenu(props) {
const results = await blocksIterator.current.next();
return results;
}
-
- const hasBubbleTimeline = supports("@akkoma/bubble-timeline") || supports("@chuckya/bubble-timeline");
-
+
+ const hasBubbleTimeline =
+ supports('@akkoma/bubble-timeline') || supports('@chuckya/bubble-timeline');
+
const buttonClickTS = useRef();
return (
<>
diff --git a/src/components/shortcuts-settings.jsx b/src/components/shortcuts-settings.jsx
index a17e9593..b7e70215 100644
--- a/src/components/shortcuts-settings.jsx
+++ b/src/components/shortcuts-settings.jsx
@@ -167,7 +167,7 @@ export const SHORTCUTS_META = {
local: t`Local`,
bubble: t`Bubble`,
federated: t`Federated`,
- }[variant]),
+ })[variant],
subtitle: ({ instance }) => instance || api().instance,
path: ({ variant, instance }) => {
const suffix = {
@@ -182,7 +182,7 @@ export const SHORTCUTS_META = {
local: 'building',
bubble: 'star2',
federated: 'earth',
- }[variant]),
+ })[variant],
},
trending: {
id: 'trending',
@@ -681,7 +681,7 @@ function ShortcutForm({
);
}
-
+
if (type === 'variant') {
return (
@@ -696,15 +696,21 @@ function ShortcutForm({
defaultValue={editMode ? shortcut.variant : 'local'}
dir="auto"
>
-
-
-
+
+
+
);
}
-
+
return (