From 982f4df0a3a933930171431adb09fe877ce50b2b Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 23 Jan 2024 15:36:48 +0000 Subject: [PATCH] chore: formatting --- packages/app/src/Pages/Profile/ProfilePage.tsx | 9 ++++++++- .../app/src/Pages/Profile/ProfileTabComponents.tsx | 13 +++++++------ packages/app/src/index.tsx | 10 +++++++--- packages/app/src/system.ts | 2 +- packages/system/src/outbox-model.ts | 6 +++++- 5 files changed, 28 insertions(+), 12 deletions(-) diff --git a/packages/app/src/Pages/Profile/ProfilePage.tsx b/packages/app/src/Pages/Profile/ProfilePage.tsx index 4f62fed8..3c3ab4c7 100644 --- a/packages/app/src/Pages/Profile/ProfilePage.tsx +++ b/packages/app/src/Pages/Profile/ProfilePage.tsx @@ -163,7 +163,14 @@ export default function ProfilePage({ id: propId, state }: ProfilePageProps) { )}
- +
diff --git a/packages/app/src/Pages/Profile/ProfileTabComponents.tsx b/packages/app/src/Pages/Profile/ProfileTabComponents.tsx index b70ddb5c..0c9c5269 100644 --- a/packages/app/src/Pages/Profile/ProfileTabComponents.tsx +++ b/packages/app/src/Pages/Profile/ProfileTabComponents.tsx @@ -56,12 +56,13 @@ export function ProfileNotesTab({ id, relays, isMe }: { id: HexKey; relays?: Arr const pinned = usePinList(id); const options = useMemo(() => ({ showTime: false, showPinned: true, canUnpin: isMe }), [isMe]); const subject = useMemo( - () => ({ - type: "pubkey", - items: [id], - discriminator: id.slice(0, 12), - relay: relays, - } as TimelineSubject), + () => + ({ + type: "pubkey", + items: [id], + discriminator: id.slice(0, 12), + relay: relays, + }) as TimelineSubject, [id, relays], ); return ( diff --git a/packages/app/src/index.tsx b/packages/app/src/index.tsx index 225b6872..bc97ad06 100644 --- a/packages/app/src/index.tsx +++ b/packages/app/src/index.tsx @@ -60,9 +60,13 @@ async function initSite() { updateRelayConnections(System, login.relays.item).catch(console.error); setupWebLNWalletConfig(Wallets); - Relay.query(["REQ", "preload-social-graph", { - kinds: [3] - }]).then(res => { + Relay.query([ + "REQ", + "preload-social-graph", + { + kinds: [3], + }, + ]).then(res => { for (const ev of res) { try { socialGraphInstance.handleEvent(ev); diff --git a/packages/app/src/system.ts b/packages/app/src/system.ts index fc990072..ae54aeec 100644 --- a/packages/app/src/system.ts +++ b/packages/app/src/system.ts @@ -59,4 +59,4 @@ export async function fetchProfile(key: string) { } catch (e) { console.error(e); } -} \ No newline at end of file +} diff --git a/packages/system/src/outbox-model.ts b/packages/system/src/outbox-model.ts index b79c2995..52331615 100644 --- a/packages/system/src/outbox-model.ts +++ b/packages/system/src/outbox-model.ts @@ -66,7 +66,11 @@ export function splitAllByWriteRelays(cache: AuthorsRelaysCache, filters: Array< /** * Split filters by authors */ -export function splitByWriteRelays(cache: AuthorsRelaysCache, filter: ReqFilter, pickN?: number): Array { +export function splitByWriteRelays( + cache: AuthorsRelaysCache, + filter: ReqFilter, + pickN?: number, +): Array { const authors = filter.authors; if ((authors?.length ?? 0) === 0) { return [