+
- {props.showPreview && (
-
- )}
-
-
+ display: props.isHidden ? "none" : "flex",
+ }}
+ >
+ {props.showPreview && (
+
+ )}
+
+
+
{props.cardBorderHidden && (
+
-
-
+ 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: {
-