diff --git a/src/renderer/src/components/entry-column/index.tsx b/src/renderer/src/components/entry-column/index.tsx index 7c77f6216..2bdd9bde4 100644 --- a/src/renderer/src/components/entry-column/index.tsx +++ b/src/renderer/src/components/entry-column/index.tsx @@ -187,7 +187,7 @@ const useEntriesByView = () => { null, [query.data], ) - console.log("remoteEntryIds", remoteEntryIds) + return { ...query, diff --git a/src/renderer/src/components/entry-column/item.tsx b/src/renderer/src/components/entry-column/item.tsx index 57d00c376..d1061aacf 100644 --- a/src/renderer/src/components/entry-column/item.tsx +++ b/src/renderer/src/components/entry-column/item.tsx @@ -83,7 +83,7 @@ function EntryItemImpl({ } return ( -
+
{ @@ -32,7 +33,7 @@ export const EntryContent = ({ entry }: { entry: ActiveEntry }) => { } function EntryContentRender({ entryId }: { entryId: string }) { - useBizQuery(Queries.entries.byId(entryId), { + const { error } = useBizQuery(Queries.entries.byId(entryId), { staleTime: 300_000, }) @@ -79,6 +80,19 @@ function EntryContentRender({ entryId }: { entryId: string }) { new Date(entry.entries.publishedAt).toUTCString()}
+ + {!content && ( +
+ {!error ? ( + + ) : ( +
+ + Network Error +
+ )} +
+ )}
{content}
diff --git a/src/renderer/src/components/ui/loading.tsx b/src/renderer/src/components/ui/loading.tsx new file mode 100644 index 000000000..e98fff987 --- /dev/null +++ b/src/renderer/src/components/ui/loading.tsx @@ -0,0 +1,19 @@ +import { cn } from "@renderer/lib/utils" + +interface LoadingCircleProps { + size: "small" | "medium" | "large" +} + +const sizeMap = { + small: "text-md", + medium: "text-xl", + large: "text-3xl", +} +export const LoadingCircle: Component = ({ + className, + size, +}) => ( +
+ +
+)