fix: some issues with publish new note
This commit is contained in:
@@ -12,7 +12,14 @@ export function NoteOpenThread() {
|
||||
<Tooltip.Trigger asChild>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => LumeWindow.openEvent(event)}
|
||||
onClick={() =>
|
||||
LumeWindow.openColumn({
|
||||
name: "Thread",
|
||||
label: event.id.slice(0, 6),
|
||||
account: event.pubkey,
|
||||
url: `/columns/events/${event.id}`,
|
||||
})
|
||||
}
|
||||
className="group inline-flex h-7 w-14 bg-neutral-100 dark:bg-white/10 rounded-full items-center justify-center text-sm font-medium text-neutral-800 dark:text-neutral-200 hover:text-blue-500 hover:bg-neutral-200 dark:hover:bg-white/20"
|
||||
>
|
||||
<ListPlus className="shrink-0 size-4" />
|
||||
|
||||
@@ -56,7 +56,14 @@ export const MentionNote = memo(function MentionNote({
|
||||
<div className="invisible group-hover:visible flex items-center justify-end">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => LumeWindow.openEvent(event)}
|
||||
onClick={() =>
|
||||
LumeWindow.openColumn({
|
||||
name: "Thread",
|
||||
label: eventId.slice(0, 6),
|
||||
account: event.pubkey,
|
||||
url: `/columns/events/${eventId}`,
|
||||
})
|
||||
}
|
||||
className="mr-3 text-sm font-medium text-blue-500 hover:text-blue-600"
|
||||
>
|
||||
Show all
|
||||
|
||||
@@ -14,8 +14,6 @@ export const RepostNote = memo(function RepostNote({
|
||||
}) {
|
||||
const { isLoading, isError, data } = useEvent(event.repostId, event.content);
|
||||
|
||||
console.log("Repost: ", event);
|
||||
|
||||
return (
|
||||
<Note.Root className={cn("", className)}>
|
||||
{isLoading ? (
|
||||
|
||||
Reference in New Issue
Block a user