diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 06d12548..501b1e92 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -1,13 +1,16 @@ import { twMerge } from "tailwind-merge"; +import LoadingSpinner from "./LoadingSpinner"; interface ButtonProps extends React.ButtonHTMLAttributes { - variant?: "primary" | "secondary" | "danger"; + variant?: "primary" | "secondary" | "danger" | "ghost"; + size?: "sm" | "md" | "lg"; isLoading?: boolean; icon?: React.ReactNode; } const Button = ({ children, + size = "md", icon, isLoading, variant = "primary", @@ -17,12 +20,16 @@ const Button = ({ + + + + )} + + ); +}; + +export default Comment; diff --git a/src/views/card/index.tsx b/src/views/card/index.tsx index 65d528e8..d7626a39 100644 --- a/src/views/card/index.tsx +++ b/src/views/card/index.tsx @@ -181,6 +181,7 @@ export default function CardPage() {