@@ -29,6 +29,7 @@ export default function FormActions({ formId, albaFormDetailData }: FormActionsP
2929 const isMyAlbaForm = user ?. id === albaFormDetailData . ownerId ;
3030 const isOwnerRole = user ?. role === "OWNER" ;
3131 const buttonStyle = "h-10 lg:h-16 w-full rounded-lg font-bold lg:mb-4" ;
32+ const buttonWrapStyle = "flex flex-col gap-2 text-2xl lg:gap-0" ;
3233
3334 const [ isLoading , setIsLoading ] = useState ( false ) ;
3435 const queryClient = useQueryClient ( ) ;
@@ -78,26 +79,28 @@ export default function FormActions({ formId, albaFormDetailData }: FormActionsP
7879 // 비회원일 때
7980 if ( ! user ) {
8081 return (
81- < div >
82- < Link href = { `/apply/${ formId } ` } >
83- < FloatingBtn className = { `${ buttonStyle } ` } icon = { < HiMail /> } >
84- 지원하기
82+ < div className = { buttonWrapStyle } >
83+ < div >
84+ < Link href = { `/apply/${ formId } ` } >
85+ < FloatingBtn className = { `${ buttonStyle } ` } icon = { < HiMail /> } >
86+ 지원하기
87+ </ FloatingBtn >
88+ </ Link >
89+ < FloatingBtn
90+ variant = "white"
91+ className = { buttonStyle }
92+ icon = { < HiDocumentText /> }
93+ onClick = { ( ) =>
94+ openModal ( "verifyMyApplication" , {
95+ formId,
96+ isOpen : true ,
97+ onVerify : handleVerifySuccess ,
98+ } )
99+ }
100+ >
101+ 내 지원내역 조회
85102 </ FloatingBtn >
86- </ Link >
87- < FloatingBtn
88- variant = "white"
89- className = { buttonStyle }
90- icon = { < HiDocumentText /> }
91- onClick = { ( ) =>
92- openModal ( "verifyMyApplication" , {
93- formId,
94- isOpen : true ,
95- onVerify : handleVerifySuccess ,
96- } )
97- }
98- >
99- 내 지원내역 조회
100- </ FloatingBtn >
103+ </ div >
101104 </ div >
102105 ) ;
103106 }
@@ -106,7 +109,7 @@ export default function FormActions({ formId, albaFormDetailData }: FormActionsP
106109 if ( isOwnerRole ) {
107110 if ( ! isMyAlbaForm ) return null ;
108111 return (
109- < div className = "flex flex-col gap-2 text-2xl lg:gap-0" >
112+ < div className = { buttonWrapStyle } >
110113 < Link href = { `/work/${ formId } /edit` } >
111114 < FloatingBtn className = { buttonStyle } icon = { < FaEdit /> } disabled = { isLoading } >
112115 { isLoading ? < DotLoadingSpinner /> : "수정하기" }
@@ -127,7 +130,7 @@ export default function FormActions({ formId, albaFormDetailData }: FormActionsP
127130
128131 // 사장님이 아니면 지원하기/내 지원내역 보기 버튼
129132 return (
130- < div className = "flex flex-col gap-2 text-2xl lg:gap-0" >
133+ < div className = { buttonWrapStyle } >
131134 { isApplicationLoading ? (
132135 < >
133136 < FloatingBtn className = { `${ buttonStyle } ` } variant = "white" >
0 commit comments