Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ui/MessageContent/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { ReactElement, ReactNode, useMemo, useRef, useState } from 'react';
import React, { ReactElement, ReactNode, useRef, useState } from 'react';
import format from 'date-fns/format';
import './index.scss';

Expand Down Expand Up @@ -213,7 +213,7 @@ export function MessageContent(props: MessageContentProps): ReactElement {
return sum;
};

const totalBottom = useMemo(() => getTotalBottom(), []);
const totalBottom = getTotalBottom();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

이거 한군데서만 쓰이는거면, 그냥 따로 변수선언 없이 바로 넘겨도 좋을 것 같습니다.


const onCloseFeedbackForm = () => {
setShowFeedbackModal(false);
Expand Down