nextauth working.
This commit is contained in:
@@ -120,11 +120,18 @@ export default function ProductCard({ product, onAdd, added }: ProductCardProps)
|
||||
</Link>
|
||||
{onAdd && (
|
||||
<button
|
||||
className="btn btn-accent btn-sm ml-2"
|
||||
className="btn btn-neutral btn-sm ml-2 flex items-center gap-1"
|
||||
onClick={onAdd}
|
||||
disabled={added}
|
||||
>
|
||||
{added ? 'Added!' : 'Add'}
|
||||
{added ? (
|
||||
'Added!'
|
||||
) : (
|
||||
<>
|
||||
<span className="text-lg leading-none">+</span>
|
||||
<span className="text-xs font-normal">to build</span>
|
||||
</>
|
||||
)}
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user