diff --git a/frontend/src/components/CopyButton.tsx b/frontend/src/components/CopyButton.tsx index 96a0a025..823123b2 100644 --- a/frontend/src/components/CopyButton.tsx +++ b/frontend/src/components/CopyButton.tsx @@ -8,10 +8,6 @@ import CopyIcon from '../assets/copy.svg?react'; type CopyButtonProps = { textToCopy: string; - bgColorLight?: string; - bgColorDark?: string; - hoverBgColorLight?: string; - hoverBgColorDark?: string; iconSize?: string; padding?: string; showText?: boolean; @@ -27,14 +23,11 @@ const DEFAULT_COPIED_DURATION = 2000; const DEFAULT_BG_LIGHT = '#FFFFFF'; const DEFAULT_BG_DARK = 'transparent'; const DEFAULT_HOVER_BG_LIGHT = '#EEEEEE'; -const DEFAULT_HOVER_BG_DARK = 'purple-taupe'; +const DEFAULT_HOVER_BG_DARK = '#464152'; export default function CopyButton({ textToCopy, - bgColorLight = DEFAULT_BG_LIGHT, - bgColorDark = DEFAULT_BG_DARK, - hoverBgColorLight = DEFAULT_HOVER_BG_LIGHT, - hoverBgColorDark = DEFAULT_HOVER_BG_DARK, + iconSize = DEFAULT_ICON_SIZE, padding = DEFAULT_PADDING, showText = false, @@ -50,9 +43,9 @@ export default function CopyButton({ const iconWrapperClasses = clsx( 'flex items-center justify-center rounded-full transition-colors duration-150 ease-in-out', padding, - `bg-[${bgColorLight}] dark:bg-[${bgColorDark}]`, + `bg-[${DEFAULT_BG_LIGHT}] dark:bg-[${DEFAULT_BG_DARK}]`, { - [`hover:bg-[${hoverBgColorLight}] dark:hover:bg-${hoverBgColorDark}`]: + [`hover:bg-[${DEFAULT_HOVER_BG_LIGHT}] dark:hover:bg-[${DEFAULT_HOVER_BG_DARK}]`]: !isCopied, 'bg-green-100 dark:bg-green-900 hover:bg-green-100 dark:hover:bg-green-900': isCopied,