This commit is contained in:
Ren Amamiya
2023-07-08 13:14:05 +07:00
parent 4cf5330ecd
commit 3752a3ab0f
6 changed files with 1062 additions and 215 deletions

View File

@@ -17,10 +17,6 @@ export const useComposer = create<ComposerState>((set) => ({
repost: { id: null, pubkey: null },
toggleModal: (status: boolean) => {
set({ open: status });
if (!status) {
set({ repost: { id: null, pubkey: null } });
set({ reply: { id: null, root: null, pubkey: null } });
}
},
setReply: (id: string, root: string, pubkey: string) => {
set({ reply: { id: id, root: root, pubkey: pubkey } });