diff --git a/fe/package-lock.json b/fe/package-lock.json index 7bbb861..ca40bc2 100644 --- a/fe/package-lock.json +++ b/fe/package-lock.json @@ -7308,4 +7308,4 @@ } } } -} \ No newline at end of file +} diff --git a/fe/public/images/MMMM.svg b/fe/public/images/MMMM.svg deleted file mode 100644 index 4a4df08..0000000 --- a/fe/public/images/MMMM.svg +++ /dev/null @@ -1,6 +0,0 @@ - diff --git a/fe/public/images/loadinglogo.svg b/fe/public/images/loadinglogo.svg new file mode 100644 index 0000000..1107cc2 --- /dev/null +++ b/fe/public/images/loadinglogo.svg @@ -0,0 +1,13 @@ + diff --git a/fe/src/app/components/common/Button.tsx b/fe/src/app/components/common/Button.tsx index 656d263..2f89acd 100644 --- a/fe/src/app/components/common/Button.tsx +++ b/fe/src/app/components/common/Button.tsx @@ -1,21 +1,31 @@ "use client"; import React from "react"; -import { ButtonProps } from "@/types/types"; // 타입 import +import { ButtonProps } from "@/types/types"; -// 함수 선언 방식으로 컴포넌트 정의 -function Button({ label, onClick, type = "start", className }: ButtonProps) { - const buttonStyle = - type === "start" - ? "bg-darkGray text-grayscale-0" - : "bg-gray-500 text-grayscale-0"; +function Button({ + label, + onClick, + type = "start", + className, + disabled = false, +}: ButtonProps) { + let buttonStyle = "bg-gray-200 text-gray-500 cursor-not-allowed"; + + if (!disabled) { + buttonStyle = + type === "start" + ? "bg-darkGray text-white" + : "bg-gray-500 text-grayscale-0"; + } return (