From 4bde2fc4b07cf8228e99b788b401394eb4c5bf64 Mon Sep 17 00:00:00 2001 From: hyuna Date: Wed, 25 Sep 2024 18:59:26 +0900 Subject: [PATCH 1/2] fix :: build error --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e11d8c1..863c6b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,5 +12,4 @@ RUN yarn build EXPOSE 3000 -CMD ["yarn", "dev"] - +CMD ["yarn", "dev"] \ No newline at end of file From 7f60a0b3cbee706348150bf2944a517d2de02e6b Mon Sep 17 00:00:00 2001 From: hyuna Date: Wed, 25 Sep 2024 19:03:09 +0900 Subject: [PATCH 2/2] fix :: build error --- src/components/button/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/button/index.tsx b/src/components/button/index.tsx index e049c00..d4ebea7 100644 --- a/src/components/button/index.tsx +++ b/src/components/button/index.tsx @@ -33,7 +33,8 @@ const Button: React.FC = ({ }) => { const getColorClass = () => { switch (colorType) { - case "primary" || "secondary": + case "primary": + case "secondary": return ` rounded-lg bg-primary-200 text-primary-1000 focus:bg-primary-500 focus:border focus:border-primary-800 active:bg-${colorType}-800`; case "tertiary": @@ -47,7 +48,6 @@ const Button: React.FC = ({ case "ghostDisabled": return " rounded-lg border border-neutral-500 text-neutral-500 bg-neutral-1000"; - case "red": return " rounded-lg text-error-1000 bg-error-200 focus:bg-error-400 focus:border focus:border-error-800 active:bg-error-700"; }