mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 11:41:23 +00:00
warnings fixed
This commit is contained in:
22
app/account/component/form-button.tsx
Normal file
22
app/account/component/form-button.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
'use client';
|
||||
import cn from 'clsx';
|
||||
export default function FormButton({
|
||||
variant = 'primary'
|
||||
}: {
|
||||
btnText: string;
|
||||
state?: string;
|
||||
variant?: 'primary' | 'outline';
|
||||
}) {
|
||||
const buttonClasses = cn({
|
||||
'bg-primary text-contrast rounded py-2 px-4 focus:shadow-outline block w-full':
|
||||
variant === 'primary',
|
||||
'text-left text-primary/50 ml-6 text-sm': variant === 'outline'
|
||||
});
|
||||
return (
|
||||
<div className="flex items-center justify-between">
|
||||
<button className={buttonClasses} type="submit">
|
||||
Submit
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user