File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
app/(sub)/capsule-detail/_components/write-modal Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import RevealMotion from "@/shared/ui/motion/reveal-motion";
77import ShakeYMotion from "@/shared/ui/motion/shakeY-motion" ;
88import PopupConfirmLetter from "@/shared/ui/popup/popup-confirm-letter" ;
99import PopupWarningLetter from "@/shared/ui/popup/popup-warning-letter" ;
10-
10+ import { PulseLoader } from "react-spinners" ;
1111import { useWriteLetter } from "@/shared/api/mutations/letter" ;
1212import type { CapsuleDetailRes } from "@/shared/types/api/capsule" ;
1313import type { WriteLetterReq } from "@/shared/types/api/letter" ;
@@ -123,9 +123,9 @@ const WriteModal = ({
123123 < button
124124 type = "submit"
125125 className = { styles . title }
126- disabled = { isPending || isUploading }
126+ disabled = { ( isPending || isUploading ) }
127127 >
128- { isPending ? "제출 중..." : isUploading ? "업로드 중..." : " 편지담기" }
128+ { ( isPending || isUploading ) ? < PulseLoader color = "#FFFFFF" size = { 5 } /> : ' 편지담기' }
129129 </ button >
130130 </ div >
131131
Original file line number Diff line number Diff line change @@ -69,6 +69,9 @@ export const content = style({
6969} ) ;
7070
7171export const title = style ( {
72+ display : "flex" ,
73+ alignItems : "center" ,
74+ justifyContent : "center" ,
7275 ...themeVars . text . B1 ,
7376 color : themeVars . color . purple [ 10 ] ,
7477 margin : 0 ,
You can’t perform that action at this time.
0 commit comments