diff --git a/package.json b/package.json index 99544830..6eff7dbb 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,8 @@ "tailwindcss": "^3.4.15", "ts-node": "^10.9.2", "typescript": "5.6.3", + "vite-tsconfig-paths": "^5.1.4", + "vitest": "^3.0.3", "yaml": "^2.6.0", "yaml-loader": "^0.8.1" }, @@ -88,7 +90,7 @@ "typecheck": "tsc", "lint": "next lint", "start": "next start", - "test": "echo 'No tests'", + "test": "vitest --watch false", "prettier": "prettier --write ./src" }, "types": "dist/src/index.d.ts", diff --git a/src/components/buttons/ConnectAwareSubmitButton.tsx b/src/components/buttons/ConnectAwareSubmitButton.tsx index 57679d77..91e039f6 100644 --- a/src/components/buttons/ConnectAwareSubmitButton.tsx +++ b/src/components/buttons/ConnectAwareSubmitButton.tsx @@ -40,7 +40,7 @@ export function ConnectAwareSubmitButton({ chainName, text, cl useTimeout(clearErrors, 3500); return ( - + {content} ); diff --git a/src/components/buttons/SolidButton.tsx b/src/components/buttons/SolidButton.tsx index 4073460a..1ec38767 100644 --- a/src/components/buttons/SolidButton.tsx +++ b/src/components/buttons/SolidButton.tsx @@ -4,7 +4,7 @@ interface ButtonProps { type?: 'submit' | 'reset' | 'button'; color?: 'white' | 'primary' | 'accent' | 'green' | 'red' | 'gray'; // defaults to primary bold?: boolean; - classes?: string; + className?: string; icon?: ReactElement; } @@ -15,7 +15,7 @@ export function SolidButton( type, onClick, color: _color, - classes, + className, bold, icon, disabled, @@ -48,7 +48,7 @@ export function SolidButton( } const onDisabled = 'disabled:bg-gray-300 disabled:text-gray-500'; const weight = bold ? 'font-semibold' : ''; - const allClasses = `${base} ${baseColors} ${onHover} ${onDisabled} ${weight} ${classes}`; + const allClasses = `${base} ${baseColors} ${onHover} ${onDisabled} ${weight} ${className}`; return (