From 0f456ecda61713390935c65018021e78c82426fc Mon Sep 17 00:00:00 2001 From: litae <109706689+qkdflrgs@users.noreply.github.com> Date: Thu, 10 Aug 2023 20:24:52 +0900 Subject: [PATCH] =?UTF-8?q?[FE]=20refactor/#146:=203=EC=A3=BC=EC=B0=A8=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EB=A6=AC=ED=8C=A9?= =?UTF-8?q?=ED=86=A0=EB=A7=81=20(#147)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat/#146: 코멘트 컴포넌트 구현 * feat/#146: 시간 차이를 구하는 함수 구현 * refactor/#146: Alert 컴포넌트 리팩토링 * refactor/#146: input 컴포넌트 리팩토링 * refactor/#146: TextInput 컴포넌트 리팩토링 * refactor/#146: 드롭다운 인디케이터 리팩토링 * refactor/#146: 드롭다운 아이템 컴포넌트 리팩토링 * refactor/#146: 드롭다운 패널 컴포넌트 리팩토링 * refactor/#146: 이슈 리스트 컴포넌트 리팩토링 * refactor/#146: 메인 페이지 리팩토링 * refactor/#146: 스타일 object 수정 * feat/#146: 마일스톤 상세 페이지(작업중) --- FE/src/components/Alert/Alert.tsx | 32 +- FE/src/components/Comment/Comment.tsx | 317 ++++++++++++++++++ .../DropdownIndicator/DropdownIndicator.tsx | 46 +-- .../components/DropdownPanel/DropdownItem.tsx | 27 +- .../DropdownPanel/DropdownPanel.tsx | 8 +- FE/src/components/IssueList/IssueList.tsx | 10 +- FE/src/components/common/Input/Input.tsx | 3 + .../components/common/TextInput/TextInput.tsx | 10 +- FE/src/pages/MainPage.tsx | 53 ++- FE/src/pages/MilestonesPage.tsx | 90 +++++ FE/src/styles/base/Object.ts | 2 +- FE/src/utils/calculateTime.ts | 18 + 12 files changed, 524 insertions(+), 92 deletions(-) create mode 100644 FE/src/components/Comment/Comment.tsx create mode 100644 FE/src/pages/MilestonesPage.tsx create mode 100644 FE/src/utils/calculateTime.ts diff --git a/FE/src/components/Alert/Alert.tsx b/FE/src/components/Alert/Alert.tsx index febddcdd0..13277aa95 100644 --- a/FE/src/components/Alert/Alert.tsx +++ b/FE/src/components/Alert/Alert.tsx @@ -1,10 +1,24 @@ import { styled } from "styled-components"; +import Button from "../common/Button/Button"; -export default function Alert() { +type Props = { + onClickCancel(): void; + onClickActive(): void; +}; + +export default function Alert({ onClickCancel, onClickActive }: Props) { return ( - - + 정말 삭제하시겠습니까? + +