From ecd2efa662aa3de8d59763786034f114d325e1a5 Mon Sep 17 00:00:00 2001 From: Degreat Date: Wed, 12 Jun 2024 16:31:06 +0000 Subject: [PATCH] actually fix unbearable mb --- client/app/components/post-content.tsx | 6 +----- client/app/components/tags.tsx | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/client/app/components/post-content.tsx b/client/app/components/post-content.tsx index e6bf6e1..1706a3d 100644 --- a/client/app/components/post-content.tsx +++ b/client/app/components/post-content.tsx @@ -1,6 +1,5 @@ import type { Media, Prisma } from "@prisma/client"; import { Link } from "@remix-run/react"; -import clsx from "clsx"; import React from "react"; import type { Jsonify } from "type-fest"; import { Avatar } from "./avatar"; @@ -53,10 +52,7 @@ function PostContent({ post }: Props) { - +
diff --git a/client/app/components/tags.tsx b/client/app/components/tags.tsx index 311f2cc..26283f9 100644 --- a/client/app/components/tags.tsx +++ b/client/app/components/tags.tsx @@ -1,4 +1,4 @@ -import { Post } from "@prisma/client"; +import type { Post } from "@prisma/client"; import clsx from "clsx"; import React from "react"; @@ -17,7 +17,7 @@ function Tags({ className, tags }: Props) { }); }, [tags]); - if (!tags.length) { + if (!parsedTags.length) { return null; }