refactor: PrimaryButton to Button

This commit is contained in:
Mahyar Khanbolooki
2025-07-01 01:41:19 +03:30
parent 9b1333fcf5
commit a26923f455
5 changed files with 11 additions and 11 deletions
+3 -3
View File
@@ -2,12 +2,12 @@ import React from 'react'
type Props = {} & React.ButtonHTMLAttributes<HTMLButtonElement>;
function PrimaryButton({ children, className, ...rest }: Props) {
function Button({ children, className, ...rest }: Props) {
return (
<button className={`${className} bg-primary w-full rounded-normal p-3 text-white font-bold text-sm`} {...rest}>
<button className={`${className} cursor-pointer bg-primary w-full rounded-normal p-3 text-white font-bold text-sm`} {...rest}>
{children}
</button>
)
}
export default PrimaryButton
export default Button