Skip to content

Commit 30f9643

Browse files
committed
feat [#83] API 테스트 페이지의 삭제 버튼을 DangerousButton 으로 교체
1 parent 070a0c9 commit 30f9643

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

src/tests/test-api-page.jsx

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useCallback, useEffect, useState } from "react";
22
import styled from "styled-components";
3-
import { PrimaryButton } from "../components/button/button";
3+
import { DangerousButton, PrimaryButton } from "../components/button/button";
44
import BUTTON_SIZE from "../components/button/button-size";
55
import Colors from "../components/color/colors";
66
import {
@@ -250,23 +250,13 @@ function TestApiPage() {
250250
/>
251251
</Row>
252252
<Row>
253-
<PrimaryButton
254-
style={
255-
recipients.length === 0
256-
? undefined
257-
: { backgroundColor: Colors.error }
258-
}
253+
<DangerousButton
259254
size={buttonSize}
260255
title="롤링페이퍼 삭제"
261256
onClick={handleDeleteRecipientsClick}
262257
disabled={recipients.length === 0}
263258
/>
264-
<PrimaryButton
265-
style={
266-
recipients.length === 0
267-
? undefined
268-
: { backgroundColor: Colors.error }
269-
}
259+
<DangerousButton
270260
size={buttonSize}
271261
title="메시지 삭제"
272262
onClick={handleDeleteMessagesClick}

0 commit comments

Comments
 (0)