diff --git a/src/components/ui/button/button.tsx b/src/components/ui/button/button.tsx index c6eebfe45..1c9e7d5a1 100644 --- a/src/components/ui/button/button.tsx +++ b/src/components/ui/button/button.tsx @@ -17,8 +17,8 @@ interface IButton { className?: string; /** Prevent the button from being clicked. */ disabled?: boolean; - /** Specifies the media element type as 'svg' or 'img'. */ - element?: 'svg' | 'img'; + /** Specifies the icon element as 'svg' or 'img'. */ + iconElement?: 'svg' | 'img'; /** URL to an SVG icon to render inside the button. */ icon?: string; /** Action when the button is clicked. */ @@ -41,7 +41,7 @@ const Button = React.forwardRef((props, ref): JSX.El block = false, children, disabled = false, - element, + iconElement, icon, onClick, size = 'md', @@ -66,7 +66,7 @@ const Button = React.forwardRef((props, ref): JSX.El return null; } - return ; + return ; }; const handleClick: React.MouseEventHandler = React.useCallback((event) => { diff --git a/src/features/zap/components/zap-pay-request-form.tsx b/src/features/zap/components/zap-pay-request-form.tsx index 666c2ac5a..723c1fa64 100644 --- a/src/features/zap/components/zap-pay-request-form.tsx +++ b/src/features/zap/components/zap-pay-request-form.tsx @@ -71,11 +71,11 @@ const ZapPayRequestForm = ({ account, status }: IZapPayRequestForm) => {
-