Skip to content

Commit

Permalink
feature: 메시지 정렬 순서 변경 (#551)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyi47 authored Oct 13, 2022
1 parent 11d079f commit bf4d412
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions frontend/src/pages/RollingpaperPage/components/LetterPaper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,9 @@ const LetterPaper = ({ to, recipientType, messageList }: LetterPaperProp) => {
const { isWrite, handleWriteButtonClick, handleWriteEnd } = useMessageWrite();

const elementList = useMemo(() => {
const elementList = messageList
.map((message) => (
<MessageBox
key={message.id}
recipientType={recipientType}
{...message}
/>
))
.reverse();
const elementList = messageList.map((message) => (
<MessageBox key={message.id} recipientType={recipientType} {...message} />
));

return isWrite
? [
Expand Down

0 comments on commit bf4d412

Please sign in to comment.