refactor: PrimaryButton to Button
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user