updated image picker

This commit is contained in:
Ren Amamiya
2023-04-21 08:20:12 +07:00
parent df2f6b0ce7
commit 5a7389b7e8
7 changed files with 58 additions and 23 deletions

View File

@@ -9,3 +9,6 @@ export const sortedChannelMessagesAtom = atom((get) => {
const messages = get(channelMessagesAtom);
return messages.sort((x: { created_at: number }, y: { created_at: number }) => x.created_at - y.created_at);
});
// channel message content
export const channelContentAtom = atomWithReset('');

View File

@@ -6,3 +6,6 @@ export const sortedChatMessagesAtom = atom((get) => {
const messages = get(chatMessagesAtom);
return messages.sort((x: { created_at: number }, y: { created_at: number }) => x.created_at - y.created_at);
});
// chat content
export const chatContentAtom = atomWithReset('');