From 949badaeeb4e32bad346e60622ba6262aa04ffe5 Mon Sep 17 00:00:00 2001 From: Thanh Quy - wolf <524H0124@student.tdtu.edu.vn> Date: Mon, 6 Apr 2026 13:08:49 +0700 Subject: [PATCH] Delete IconButton --- components/atoms/buttons/IconButton.tsx | 41 ------------------------- components/atoms/buttons/index.ts | 1 - components/atoms/index.ts | 2 +- 3 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 components/atoms/buttons/IconButton.tsx diff --git a/components/atoms/buttons/IconButton.tsx b/components/atoms/buttons/IconButton.tsx deleted file mode 100644 index 6b93eff..0000000 --- a/components/atoms/buttons/IconButton.tsx +++ /dev/null @@ -1,41 +0,0 @@ -"use client"; - -import type { ButtonProps } from "./Button.types"; - -export default function IconButton({ - variant = "primary", - size = "md", - icon, - disabled = false, - className = "", - children, - ...props -}: ButtonProps) { - const baseStyles = - "font-semibold rounded-lg transition-colors disabled:opacity-50 disabled:cursor-not-allowed inline-flex items-center justify-center"; - - const variants = { - primary: - "bg-(--color-primary) text-white hover:bg-(--color-primary-dark) active:scale-95", - secondary: - "border border-(--color-border) hover:bg-(--color-border-light) active:scale-95", - danger: "bg-red-500 text-white hover:bg-red-600 active:scale-95", - ghost: "bg-transparent hover:bg-(--color-border-light) active:scale-95", - }; - - const sizes = { - sm: "h-8 w-8 text-sm", - md: "h-10 w-10 text-base", - lg: "h-12 w-12 text-lg", - }; - - return ( - - ); -} diff --git a/components/atoms/buttons/index.ts b/components/atoms/buttons/index.ts index 9d9b89f..90ede02 100644 --- a/components/atoms/buttons/index.ts +++ b/components/atoms/buttons/index.ts @@ -1,3 +1,2 @@ export { default as Button } from "./Button"; -export { default as IconButton } from "./IconButton"; export type { ButtonProps } from "./Button.types"; diff --git a/components/atoms/index.ts b/components/atoms/index.ts index 4df3242..fb05cc0 100644 --- a/components/atoms/index.ts +++ b/components/atoms/index.ts @@ -1,5 +1,5 @@ // Buttons -export { Button, IconButton } from "./buttons"; +export { Button } from "./buttons"; export type { ButtonProps } from "./buttons"; // Inputs