Skip to content

Commit 3872f8e

Browse files
committed
refactor: recipient 상수화
1 parent c0c8250 commit 3872f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/pages/RollingpaperPage/components/LetterPaper.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import MessageCreateForm from "@/pages/RollingpaperPage/components/MessageCreate
1111
import MessageBox from "@/pages/RollingpaperPage/components/MessageBox";
1212
import useSliceMessageList from "@/pages/RollingpaperPage/hooks/useSliceMessageList";
1313

14-
import { ROLLINGPAPER_STATE_TYPE } from "@/constants";
14+
import { ROLLINGPAPER_STATE_TYPE, RECIPIENT } from "@/constants";
1515

1616
interface LetterPaperProp {
1717
to: string;
@@ -48,7 +48,7 @@ const LetterPaper = ({
4848
return rollingpaperState === ROLLINGPAPER_STATE_TYPE.WRITE
4949
? [
5050
<MessageCreateForm
51-
enableSecretMessage={recipientType === "MEMBER"}
51+
enableSecretMessage={recipientType === RECIPIENT.MEMBER}
5252
onEditEnd={handleWriteEnd}
5353
/>,
5454
...elementList,

0 commit comments

Comments
 (0)