feat: add frontend unit test framework (#6426)

This commit is contained in:
Joel 2024-07-18 17:35:10 +08:00 • committed by GitHub
commit 4ae4895ebe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 2439 additions and 21 deletions

View file

@ -45,7 +45,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
{...props}
>
{children}
<Spinner loading={loading} className='!text-white !h-3 !w-3 !border-2 !ml-1' />
{loading && <Spinner loading={loading} className='!text-white !h-3 !w-3 !border-2 !ml-1' />}
</button>
)
},