diff --git a/app/[leaflet_id]/Actions.tsx b/app/[leaflet_id]/Actions.tsx
index bbf8656d..9d6d5df6 100644
--- a/app/[leaflet_id]/Actions.tsx
+++ b/app/[leaflet_id]/Actions.tsx
@@ -5,12 +5,11 @@ import {
} from "app/lish/createPub/getPublicationURL";
import { ActionButton } from "components/ActionBar/ActionButton";
import { GoBackSmall } from "components/Icons/GoBackSmall";
-import { PaintSmall } from "components/Icons/PaintSmall";
import { PublishSmall } from "components/Icons/PublishSmall";
import { useLeafletPublicationData } from "components/PageSWRDataProvider";
+import { SpeedyLink } from "components/SpeedyLink";
import { useToaster } from "components/Toast";
import { DotLoader } from "components/utils/DotLoader";
-import Link from "next/link";
import { useParams, useRouter } from "next/navigation";
import { useState } from "react";
import { useReplicache } from "src/replicache";
@@ -26,7 +25,7 @@ export const BackToPubButton = (props: {
};
}) => {
return (
-
@@ -34,7 +33,7 @@ export const BackToPubButton = (props: {
icon={}
label="To Pub"
/>
-
+
);
};
@@ -84,11 +83,11 @@ const UpdateButton = () => {
content: (
{pub.doc ? "Updated! " : "Published! "}
-
link
-
+
),
type: "success",
diff --git a/app/home/LeafletPreview.tsx b/app/home/LeafletPreview.tsx
index 3c350a73..f1eba178 100644
--- a/app/home/LeafletPreview.tsx
+++ b/app/home/LeafletPreview.tsx
@@ -29,6 +29,7 @@ import {
PublicationMetadata,
PublicationMetadataPreview,
} from "components/Pages/PublicationMetadata";
+import { SpeedyLink } from "components/SpeedyLink";
export const LeafletPreview = (props: {
draft?: boolean;
@@ -97,7 +98,10 @@ export const LeafletPreview = (props: {
-
+
) : (
@@ -249,16 +253,3 @@ const LeafletTemplateIndicator = (props: { isTemplate: boolean }) => {
);
};
-
-const LeafletPreviewLink = (props: { id: string }) => {
- let [prefetch, setPrefetch] = useState(false);
- return (
- setPrefetch(true)}
- onPointerDown={() => setPrefetch(true)}
- prefetch={prefetch}
- href={`/${props.id}`}
- className={`no-underline sm:hover:no-underline text-primary absolute inset-0 w-full h-full`}
- />
- );
-};
diff --git a/app/home/Publications.tsx b/app/home/Publications.tsx
index b2074cd9..50a3323e 100644
--- a/app/home/Publications.tsx
+++ b/app/home/Publications.tsx
@@ -15,6 +15,7 @@ import { PubLeafletPublication } from "lexicons/api";
import { AtUri } from "@atproto/syntax";
import { blobRefToSrc } from "src/utils/blobRefToSrc";
import { PublicationThemeProvider } from "components/ThemeManager/PublicationThemeProvider";
+import { SpeedyLink } from "components/SpeedyLink";
export const MyPublicationList = () => {
let { identity } = useIdentityData();
@@ -23,12 +24,12 @@ export const MyPublicationList = () => {
@@ -65,7 +66,7 @@ function Publication(props: { uri: string; name: string; record: Json }) {
let showPageBackground = !!record?.theme?.showPageBackground;
return (
-
@@ -94,7 +95,7 @@ function Publication(props: { uri: string; name: string; record: Json }) {
{props.name}
-
+
);
}
diff --git a/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx b/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx
index 7d35b88f..c728922a 100644
--- a/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx
+++ b/app/lish/[did]/[publication]/[rkey]/PostHeader/PostHeader.tsx
@@ -1,14 +1,12 @@
"use client";
-import Link from "next/link";
import { PubLeafletDocument, PubLeafletPublication } from "lexicons/api";
import { getPublicationURL } from "app/lish/createPub/getPublicationURL";
import { Interactions } from "../Interactions/Interactions";
import { PostPageData } from "../getPostPageData";
import { ProfileViewDetailed } from "@atproto/api/dist/client/types/app/bsky/actor/defs";
import { useIdentityData } from "components/IdentityProvider";
-import { blobRefToSrc } from "src/utils/blobRefToSrc";
-import { AtUri } from "@atproto/syntax";
import { EditTiny } from "components/Icons/EditTiny";
+import { SpeedyLink } from "components/SpeedyLink";
export function PostHeader(props: {
data: PostPageData;
@@ -40,7 +38,7 @@ export function PostHeader(props: {