Skip to content

Commit

Permalink
refactor: recipient 상수화
Browse files Browse the repository at this point in the history
  • Loading branch information
prefer2 committed Oct 6, 2022
1 parent c0c8250 commit 3872f8e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import MessageCreateForm from "@/pages/RollingpaperPage/components/MessageCreate
import MessageBox from "@/pages/RollingpaperPage/components/MessageBox";
import useSliceMessageList from "@/pages/RollingpaperPage/hooks/useSliceMessageList";

import { ROLLINGPAPER_STATE_TYPE } from "@/constants";
import { ROLLINGPAPER_STATE_TYPE, RECIPIENT } from "@/constants";

interface LetterPaperProp {
to: string;
Expand Down Expand Up @@ -48,7 +48,7 @@ const LetterPaper = ({
return rollingpaperState === ROLLINGPAPER_STATE_TYPE.WRITE
? [
<MessageCreateForm
enableSecretMessage={recipientType === "MEMBER"}
enableSecretMessage={recipientType === RECIPIENT.MEMBER}
onEditEnd={handleWriteEnd}
/>,
...elementList,
Expand Down

0 comments on commit 3872f8e

Please sign in to comment.