- {editor && (
+ {publication.editor && (
-
-
+
+
)}
@@ -167,49 +143,25 @@ export default function PublicationPage() {
)
}
- return (
- <>
-
-
- {/*
- Searching the network...
-
*/}
- >
- )
-}
-
-function PublicationShell() {
- // TODO: update shell
- return (
-
-
-
-
-
-
-
- )
-}
+ if (publication.error) {
+ return (
+
+
+
+ Publication ERROR
+
+
+ {JSON.stringify(publication.error)}
+
+
+
+
+ )
+ }
-function BlockPlaceholder() {
- return (
-
-
-
-
-
-
- )
+ return
}
type ActivePanel = 'conversations' | 'citations' | 'changes' | undefined
diff --git a/frontend/packages/app/src/pages/settings.tsx b/frontend/packages/app/src/pages/settings.tsx
index 8231ab4735..f2cc25e78e 100644
--- a/frontend/packages/app/src/pages/settings.tsx
+++ b/frontend/packages/app/src/pages/settings.tsx
@@ -691,7 +691,9 @@ function SiteSettings({
{isLoading ? (
-
+
+
+
) : (
diff --git a/frontend/packages/app/src/pages/site-page.tsx b/frontend/packages/app/src/pages/site-page.tsx
index dd1b11b5e6..f72fa154f5 100644
--- a/frontend/packages/app/src/pages/site-page.tsx
+++ b/frontend/packages/app/src/pages/site-page.tsx
@@ -1,8 +1,5 @@
import {useAccount} from '@mintter/app/src/models/accounts'
-import {
- prefetchPublication,
- usePublication,
-} from '@mintter/app/src/models/documents'
+import {usePublication} from '@mintter/app/src/models/documents'
import {useSitePublications} from '@mintter/app/src/models/sites'
import {usePopoverState} from '@mintter/app/src/use-popover-state'
import {getDocUrl} from '@mintter/shared'
@@ -115,18 +112,9 @@ function WebPublicationListItem({
: null
const {data: author} = useAccount(publication?.document?.author)
return (
-