From 32800a82fcee80bfe8f223f64fa6c55c83f00ec5 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Fri, 17 Dec 2021 15:08:24 -0800 Subject: [PATCH] Fix copy button className --- src/button/CopyButton.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/button/CopyButton.jsx b/src/button/CopyButton.jsx index d5d3021..8501a29 100644 --- a/src/button/CopyButton.jsx +++ b/src/button/CopyButton.jsx @@ -7,7 +7,7 @@ import { Button } from "./Button"; export function CopyButton({ value, children, - onClassName, + className, variant, copiedMessage, ...rest @@ -19,7 +19,7 @@ export function CopyButton({ {...rest} variant={variant === "icon" ? "iconCopy" : "copy"} on={isCopied} - onClassName={onClassName} + className={className} onPress={setCopied} iconStyle={isCopied ? "stroke" : "fill"} >