diff --git a/src/components/Button.tsx b/src/components/Button.tsx index f73a3b0..4e34e8a 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,3 +1,15 @@ +const colorMap: Record = { + mygreen: 'bg-mygreen', + myyellow: 'bg-myyellow', + myred: 'bg-myred', +}; + +const hoverMap: Record = { + mygreen: 'hover:bg-mygreen', + myyellow: 'hover:bg-myyellow', + myred: 'hover:bg-myred', +}; + interface ButtonProps { color?: string; hover?: string; @@ -5,10 +17,10 @@ interface ButtonProps { onClick?: () => void; } -function Button({ color, hover, text, onClick }: ButtonProps) { +function Button({ color = 'mygreen', hover = 'mygreen', text, onClick }: ButtonProps) { return (
-
diff --git a/src/pages/Auth/Auth.tsx b/src/pages/Auth/Auth.tsx index 0cab422..c72760f 100644 --- a/src/pages/Auth/Auth.tsx +++ b/src/pages/Auth/Auth.tsx @@ -531,17 +531,6 @@ function Auth() { ))} )} - - {errors.password && ( - - )}