add hashtag support in composer
This commit is contained in:
@@ -4,21 +4,21 @@ interface ComposerState {
|
||||
open: boolean;
|
||||
reply: { id: string; pubkey: string; root?: string };
|
||||
toggleModal: (status: boolean) => void;
|
||||
setReply: (id: string, pubkey: string) => void;
|
||||
setReply: (id: string, pubkey: string, root?: string) => void;
|
||||
clearReply: () => void;
|
||||
}
|
||||
|
||||
export const useComposer = create<ComposerState>((set) => ({
|
||||
open: false,
|
||||
reply: { id: null, root: null, pubkey: null },
|
||||
reply: { id: null, pubkey: null, root: null },
|
||||
toggleModal: (status: boolean) => {
|
||||
set({ open: status });
|
||||
},
|
||||
setReply: (id: string, pubkey: string, root?: string) => {
|
||||
set({ reply: { id: id, root: root, pubkey: pubkey } });
|
||||
set({ reply: { id: id, pubkey: pubkey, root: root } });
|
||||
set({ open: true });
|
||||
},
|
||||
clearReply: () => {
|
||||
set({ reply: { id: null, root: null, pubkey: null } });
|
||||
set({ reply: { id: null, pubkey: null, root: null } });
|
||||
},
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user