Skip to content

Commit 84e5062

Browse files
committed
style: format 수정
1 parent 8edcac1 commit 84e5062

File tree

8 files changed

+31
-38
lines changed

8 files changed

+31
-38
lines changed

src/apis/festivalManager/checkFMPermission.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import type { AxiosResponse } from 'axios';
66
interface CheckFMPermissionResponse {
77
content: boolean;
88
}
9-
export const checkFMPermission = async (
10-
): Promise<AxiosResponse<CheckFMPermissionResponse>> => {
9+
export const checkFMPermission = async (): Promise<AxiosResponse<CheckFMPermissionResponse>> => {
1110
return await apiInstance.get<CheckFMPermissionResponse>(
1211
generatePath(API_ENDPOINTS.FM_PERMISSION_CHECK),
1312
);

src/components/modal/ConfirmModal.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ const ConfirmModal = ({
3434
>
3535
<h3 className="text-lg font-bold text-gray-900 mb-2">{title}</h3>
3636
{isDelete ? (
37-
<p className="text-sm text-red-700 mb-6 whitespace-pre-line">
38-
{message}
39-
</p>
37+
<p className="text-sm text-red-700 mb-6 whitespace-pre-line">{message}</p>
4038
) : (
4139
<p className="text-sm text-gray-700 mb-6 whitespace-pre-line">{message}</p>
4240
)}

src/constants/systemMessages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ export const SYSTEM_MESSAGES = {
7777
HAS_APPLIED_MESSAGE: '이미 이 축제에 관리자 신청을 하셨습니다.\n승인을 기다려주세요.',
7878
CHECK_ERROR: '확인 중 오류가 발생했습니다. 다시 시도해주세요.',
7979
GET_APPLICATION_ERROR: '축제 관리 신청 내역을 가져오는데 실패했습니다.',
80-
APPROVED_DELETE_CONFIRM: '정말 신청서를 삭제하시겠습니까?\n삭제 시 이 축제의 관리자 권한이 취소됩니다.',
80+
APPROVED_DELETE_CONFIRM:
81+
'정말 신청서를 삭제하시겠습니까?\n삭제 시 이 축제의 관리자 권한이 취소됩니다.',
8182
DELETE_CONFIRM: '정말 신청서를 삭제하시겠습니까?\n삭제 시 신청서는 복구할 수 없습니다.',
8283
DENIED_REAPPLY: '신청서 수정 시 재심사가 진행됩니다.',
8384
ALREADY_HAS_PERMISSION: '축제 관리자를 신청한 내역이 있습니다.',

src/pages/SettingsFMPermissionStatus/components/SettingsFMPermissionButton.tsx

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,20 @@ const SettingsFMPermissionButton = ({
5656
)}
5757
{permission.state === 'DENIED' && (
5858
<>
59-
<Button variant="secondary" className="flex-1" onClick={handleEdit}>
60-
수정
61-
</Button>
62-
<Button
63-
variant="secondary"
64-
className="flex-1 text-red-600 border-red-300 hover:bg-red-50"
65-
onClick={handleDelete}
66-
disabled={isDeleting}
67-
>
68-
{isDeleting ? '삭제 중...' : '삭제'}
69-
</Button>
59+
<Button variant="secondary" className="flex-1" onClick={handleEdit}>
60+
수정
61+
</Button>
62+
<Button
63+
variant="secondary"
64+
className="flex-1 text-red-600 border-red-300 hover:bg-red-50"
65+
onClick={handleDelete}
66+
disabled={isDeleting}
67+
>
68+
{isDeleting ? '삭제 중...' : '삭제'}
69+
</Button>
7070
</>
7171
)}
7272
</div>
73-
7473
);
7574
};
7675
export default SettingsFMPermissionButton;

src/pages/SettingsFMPermissionStatus/components/SettingsFMPermissionStatusCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ const SettingsFMPermissionStatusCard = ({ permission }: SettingsFMPermissionStat
1818
<h3 className="font-bold text-lg">{statusInfo.label}</h3>
1919
<p className="text-sm">{statusInfo.message}</p>
2020
{permission.state === 'DENIED' && (
21-
<p className="text-sm">
22-
{SYSTEM_MESSAGES.FM_APPLICATION.DENIED_REAPPLY}
23-
</p>
21+
<p className="text-sm">{SYSTEM_MESSAGES.FM_APPLICATION.DENIED_REAPPLY}</p>
2422
)}
2523
</div>
2624
</div>

src/pages/SettingsFestivalMyManageDetail/components/FestivalPermissionButtons.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ const FestivalPermissionButtons = ({
5454
{/* DENIED 상태: 삭제만 가능 */}
5555
{state === 'DENIED' && (
5656
<>
57-
<Button variant="secondary" className="flex-1" onClick={handleEdit}>
58-
수정
59-
</Button>
60-
<Button
61-
variant="secondary"
62-
className="flex-1 text-red-600 border-red-300 hover:bg-red-50"
63-
onClick={handleDelete}
64-
disabled={isDeleting}
65-
>
66-
{isDeleting ? '삭제 중...' : '삭제'}
67-
</Button>
57+
<Button variant="secondary" className="flex-1" onClick={handleEdit}>
58+
수정
59+
</Button>
60+
<Button
61+
variant="secondary"
62+
className="flex-1 text-red-600 border-red-300 hover:bg-red-50"
63+
onClick={handleDelete}
64+
disabled={isDeleting}
65+
>
66+
{isDeleting ? '삭제 중...' : '삭제'}
67+
</Button>
6868
</>
6969
)}
7070
</div>

src/pages/SettingsFestivalMyManageDetail/components/FestivalPermissionStatusCard.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ const FestivalPermissionStatusCard = ({ state }: FestivalPermissionStatusCardPro
2323
<h3 className="font-bold text-lg">{statusInfo.label}</h3>
2424
<p className="text-sm">{statusInfo.message}</p>
2525
{state === 'DENIED' && (
26-
<p className="text-sm">
27-
{SYSTEM_MESSAGES.FESTIVAL_MANAGER_APPLY.DENIED_REAPPLY}
28-
</p>
26+
<p className="text-sm">{SYSTEM_MESSAGES.FESTIVAL_MANAGER_APPLY.DENIED_REAPPLY}</p>
2927
)}
3028
</div>
3129
</div>

src/pages/SettingsFestivalMyManageDetail/components/SettingsFestivalMyManageDetailContent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ const SettingsFestivalMyManageDetailContent = () => {
8787
const permission = data?.data.content;
8888
if (!permission) return null;
8989

90-
const { message } = (() => {
90+
const { message } = (() => {
9191
switch (permission.state) {
9292
case 'ACCEPTED':
93-
return { message: SYSTEM_MESSAGES.FESTIVAL_MANAGER_APPLY.APPROVED_DELETE_CONFIRM };
93+
return { message: SYSTEM_MESSAGES.FESTIVAL_MANAGER_APPLY.APPROVED_DELETE_CONFIRM };
9494
default:
9595
return { message: SYSTEM_MESSAGES.FESTIVAL_MANAGER_APPLY.DELETE_CONFIRM };
9696
}
9797
})();
98-
98+
9999
return (
100100
<div className="p-4 space-y-4 pb-20">
101101
<FestivalPermissionStatusCard state={permission.state} />

0 commit comments

Comments
 (0)