update note actions component

This commit is contained in:
Ren Amamiya
2023-07-16 14:24:19 +07:00
parent e0a14ce6cf
commit abc53a0d9a
15 changed files with 64 additions and 74 deletions

View File

@@ -4,15 +4,7 @@ import { ReplyIcon } from '@shared/icons';
import { useComposer } from '@stores/composer';
export function NoteReply({
id,
rootID,
pubkey,
}: {
id: string;
rootID?: string;
pubkey: string;
}) {
export function NoteReply({ id, pubkey }: { id: string; pubkey: string }) {
const setReply = useComposer((state) => state.setReply);
return (
@@ -20,7 +12,7 @@ export function NoteReply({
<Tooltip.Trigger asChild>
<button
type="button"
onClick={() => setReply(id, rootID, pubkey)}
onClick={() => setReply(id, pubkey)}
className="group inline-flex h-7 w-7 items-center justify-center"
>
<ReplyIcon className="h-5 w-5 text-zinc-300 group-hover:text-green-500" />