add single note page

This commit is contained in:
Ren Amamiya
2023-04-30 11:48:38 +07:00
parent 2a1b64fdfe
commit fdbdaaa384
16 changed files with 349 additions and 100 deletions

View File

@@ -70,10 +70,10 @@ export const getQuoteID = (arr: string[]) => {
return quoteID;
};
// sort messages by timestamp
export const sortMessages = (arr: any) => {
// sort events by timestamp
export const sortEvents = (arr: any) => {
arr.sort((a, b) => {
return b.created_at - a.created_at;
return a.created_at - b.created_at;
});
return arr;