feat(column): add hashtag column
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { PinIcon } from "@lume/icons";
|
||||
import { WIDGET_KIND } from "@lume/utils";
|
||||
import { COL_TYPES } from "@lume/utils";
|
||||
import * as Tooltip from "@radix-ui/react-tooltip";
|
||||
import { useNoteContext } from "..";
|
||||
import { useColumnContext } from "../../column";
|
||||
@@ -16,7 +16,7 @@ export function NotePin() {
|
||||
type="button"
|
||||
onClick={() =>
|
||||
addColumn({
|
||||
kind: WIDGET_KIND.thread,
|
||||
kind: COL_TYPES.thread,
|
||||
title: "Thread",
|
||||
content: event.id,
|
||||
})
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { WIDGET_KIND } from "@lume/utils";
|
||||
import { COL_TYPES } from "@lume/utils";
|
||||
import { useColumnContext } from "../../column";
|
||||
|
||||
export function Hashtag({ tag }: { tag: string }) {
|
||||
@@ -9,9 +9,9 @@ export function Hashtag({ tag }: { tag: string }) {
|
||||
type="button"
|
||||
onClick={() =>
|
||||
addColumn({
|
||||
kind: WIDGET_KIND.hashtag,
|
||||
kind: COL_TYPES.hashtag,
|
||||
title: tag,
|
||||
content: tag.replace("#", ""),
|
||||
content: tag,
|
||||
})
|
||||
}
|
||||
className="cursor-default break-all text-blue-500 hover:text-blue-600"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { WIDGET_KIND } from "@lume/utils";
|
||||
import { COL_TYPES } from "@lume/utils";
|
||||
import * as DropdownMenu from "@radix-ui/react-dropdown-menu";
|
||||
import { memo } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
@@ -30,7 +30,7 @@ export const MentionUser = memo(function MentionUser({
|
||||
type="button"
|
||||
onClick={() =>
|
||||
addColumn({
|
||||
kind: WIDGET_KIND.user,
|
||||
kind: COL_TYPES.user,
|
||||
title: user?.name || user?.displayName || "",
|
||||
content: pubkey,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user