Skip to content

Commit c15879f

Browse files
committed
refactor [#84] 실제로 데이터를 삭제하는 버튼에만 DangerousButton 사용
1 parent 66a5e9a commit c15879f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/pages/messages-page.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import {
55
DangerousButton,
66
OutlinedButton,
77
PrimaryButton,
8-
SecondaryButton,
98
} from "../components/button/button";
109
import BUTTON_SIZE from "../components/button/button-size";
1110
import BACKGROUND_COLOR from "../components/color/background-color";
@@ -82,7 +81,7 @@ function ViewerButtons({ onEdit }) {
8281
function EditingButtons({ onDelete, onDone }) {
8382
return (
8483
<ButtonContainer>
85-
<DangerousButton
84+
<PrimaryButton
8685
size={BUTTON_SIZE.medium}
8786
title="삭제하기"
8887
onClick={onDelete}
@@ -245,12 +244,12 @@ function MessagesPage() {
245244
content={dialogContent}
246245
action={
247246
<>
248-
<PrimaryButton
247+
<DangerousButton
249248
size={BUTTON_SIZE.medium}
250249
title="삭제"
251250
onClick={handleDelete}
252251
/>
253-
<SecondaryButton
252+
<OutlinedButton
254253
size={BUTTON_SIZE.medium}
255254
title="취소"
256255
onClick={handleDeleteCancel}

0 commit comments

Comments
 (0)