diff --git a/app/(home-pages)/home/LeafletList/LeafletInfo.tsx b/app/(home-pages)/home/LeafletList/LeafletInfo.tsx index b1c50611..53927749 100644 --- a/app/(home-pages)/home/LeafletList/LeafletInfo.tsx +++ b/app/(home-pages)/home/LeafletList/LeafletInfo.tsx @@ -32,17 +32,9 @@ export const LeafletInfo = (props: { className={`leafletInfo w-full min-w-0 flex flex-col ${props.className}`} >
- setPrefetch(true)} - onPointerDown={() => setPrefetch(true)} - prefetch={prefetch} - href={`/${props.token.id}`} - className="no-underline sm:hover:no-underline text-primary grow min-w-0" - > -

- {props.title} -

- +

+ {props.title} +

{props.isTemplate && props.display === "list" ? (
- setPrefetch(true)} - onPointerDown={() => setPrefetch(true)} - prefetch={prefetch} - href={`/${props.token.id}`} - className="no-underline sm:hover:no-underline text-primary w-full" - > - {props.draft || props.published ? ( -
- {props.published - ? `Published ${prettyPublishedAt}` - : `Draft ${prettyCreatedAt}`} -
- ) : ( -
{prettyCreatedAt}
- )} - {props.archived && ( -
archived
- )} - + {props.draft || props.published ? ( +
+ {props.published + ? `Published ${prettyPublishedAt}` + : `Draft ${prettyCreatedAt}`} +
+ ) : ( +
{prettyCreatedAt}
+ )} + {props.archived &&
archived
} {props.isTemplate && props.display === "grid" ? (
-
+
- {props.showPreview && ( - - )} - -
+ display: props.isHidden ? "none" : "flex", + }} + > + {props.showPreview && ( + + )} + +
+ {props.cardBorderHidden && (
); return ( -
+
-
- + display: props.isHidden ? "none" : "flex", + }} + > +
+ +
+
- -
+ + ); +}; + +const LeafletLink = (props: { id: string; children: React.ReactNode }) => { + return ( + + {props.children} + ); }; diff --git a/app/(home-pages)/home/LeafletList/LeafletOptions.tsx b/app/(home-pages)/home/LeafletList/LeafletOptions.tsx index 7d952704..da9953a5 100644 --- a/app/(home-pages)/home/LeafletList/LeafletOptions.tsx +++ b/app/(home-pages)/home/LeafletList/LeafletOptions.tsx @@ -48,7 +48,7 @@ export const LeafletOptions = (props: { }} trigger={
{ e.preventDefault; e.stopPropagation; diff --git a/app/(home-pages)/home/LeafletList/LeafletPreview.tsx b/app/(home-pages)/home/LeafletList/LeafletPreview.tsx index bd8e10b4..0b92c225 100644 --- a/app/(home-pages)/home/LeafletList/LeafletPreview.tsx +++ b/app/(home-pages)/home/LeafletList/LeafletPreview.tsx @@ -8,13 +8,9 @@ import { useEntity, useReferenceToEntity, } from "src/replicache"; -import { useTemplateState } from "../Actions/CreateNewButton"; import { useCardBorderHidden } from "components/Pages/useCardBorderHidden"; import { LeafletContent } from "./LeafletContent"; import { Tooltip } from "components/Tooltip"; -import { useState } from "react"; -import Link from "next/link"; -import { SpeedyLink } from "components/SpeedyLink"; export const LeafletListPreview = (props: { draft?: boolean; @@ -174,17 +170,7 @@ export const LeafletGridPreview = (props: {
-
); }; - -const LeafletPreviewLink = (props: { id: string }) => { - return ( - - ); -};