🐛 fix: button inside button console browser error

This commit is contained in:
Wahyu Kurniawan 2024-02-28 21:17:30 +07:00
parent eda2cc76ed
commit 769593913e
No known key found for this signature in database
GPG Key ID: 040A1549143A8E33

View File

@ -49,9 +49,9 @@ export const TemplateCard = ({ template, isGitAuth }: TemplateCardProps) => {
}, [isGitAuth, navigate, template, toast]); }, [isGitAuth, navigate, template, toast]);
return ( return (
<button <div
className={cn( className={cn(
'flex items-center gap-3 px-3 py-3 bg-base-bg-alternate hover:bg-base-bg-emphasized rounded-2xl group relative', 'flex items-center gap-3 px-3 py-3 bg-base-bg-alternate hover:bg-base-bg-emphasized rounded-2xl group relative cursor-pointer',
{ {
'cursor-default': template?.isComingSoon, 'cursor-default': template?.isComingSoon,
}, },
@ -80,6 +80,6 @@ export const TemplateCard = ({ template, isGitAuth }: TemplateCardProps) => {
<ArrowRightCircleIcon /> <ArrowRightCircleIcon />
</Button> </Button>
)} )}
</button> </div>
); );
}; };