fix: add proper types to Button component

Resolve type errors caused by stricter React typing after dependency update.

Co-authored-by: Thomas Ruoff <111471+tomru@users.noreply.github.com>
This commit is contained in:
v0
2026-02-06 07:31:07 +00:00
committed by Thomas Ruoff
parent 38c0a5df7a
commit d07e447934

View File

@@ -1,4 +1,4 @@
const Button = ({ children, loading = false, ...rest }) => {
const Button = ({ children, loading = false, ...rest }: React.ButtonHTMLAttributes<HTMLButtonElement> & { loading?: boolean }) => {
return (<button className="btn btn-blue" {...rest}>
{loading &&
<svg className="inline animate-spin -ml-1 mr-3 h-4 w-4 text-white" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">