feat: add frontend unit test framework (#6426)

This commit is contained in:
Joel
2024-07-18 17:35:10 +08:00
committed by GitHub
parent afe95fa780
commit 4ae4895ebe
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>
)
},