From 72bc352b510151473bb7553b22865eca2b3e05b8 Mon Sep 17 00:00:00 2001 From: celine Date: Wed, 29 Oct 2025 14:34:01 -0400 Subject: [PATCH] changed tags to use Link rather than button --- .../[rkey]/Interactions/Interactions.tsx | 7 +------ app/lish/[did]/[publication]/page.tsx | 2 +- components/Icons/TagTiny.tsx | 2 +- components/InteractionsPreview.tsx | 7 +------ components/Tags.tsx | 13 +++++-------- 5 files changed, 9 insertions(+), 22 deletions(-) diff --git a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx index 5a40643b..8a40433a 100644 --- a/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx +++ b/app/lish/[did]/[publication]/[rkey]/Interactions/Interactions.tsx @@ -188,12 +188,7 @@ const TagList = (props: { className?: string }) => { return (
{Tags.map((tag, index) => ( - {}} - className={props.className} - /> + ))}
); diff --git a/app/lish/[did]/[publication]/page.tsx b/app/lish/[did]/[publication]/page.tsx index 468c87e9..7f1c86b2 100644 --- a/app/lish/[did]/[publication]/page.tsx +++ b/app/lish/[did]/[publication]/page.tsx @@ -151,7 +151,7 @@ export default async function Publication(props: {

-
+

{doc_record.publishedAt && new Date( diff --git a/components/Icons/TagTiny.tsx b/components/Icons/TagTiny.tsx index fbc76d78..090448d6 100644 --- a/components/Icons/TagTiny.tsx +++ b/components/Icons/TagTiny.tsx @@ -11,7 +11,7 @@ export const TagTiny = (props: Props) => { {...props} > diff --git a/components/InteractionsPreview.tsx b/components/InteractionsPreview.tsx index a74e53cf..851daac3 100644 --- a/components/InteractionsPreview.tsx +++ b/components/InteractionsPreview.tsx @@ -109,12 +109,7 @@ const TagList = (props: { className?: string }) => { return (

{Tags.map((tag, index) => ( - {}} - className={props.className} - /> + ))}
); diff --git a/components/Tags.tsx b/components/Tags.tsx index 04f3ad12..bcaed365 100644 --- a/components/Tags.tsx +++ b/components/Tags.tsx @@ -3,6 +3,7 @@ import { CloseTiny } from "components/Icons/CloseTiny"; import { Input } from "components/Input"; import { useState, useRef, useEffect } from "react"; import { Popover } from "components/Popover"; +import Link from "next/link"; const Tags: { name: string; tagged: number }[] = [ { name: "dogs", tagged: 240 }, @@ -19,22 +20,18 @@ export const Tag = (props: { name: string; selected?: boolean; onDelete?: (tag: string) => void; - onClick?: (tag: string) => void; className?: string; }) => { return (
- + {props.selected ? (