refactor: refactor the button component using forwardRef (#4379)

Co-authored-by: KVOJJJin <jzongcode@gmail.com>
This commit is contained in:
TinsFox 2024-06-19 14:13:16 +08:00 • committed by GitHub
commit a3bd5eba02
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
100 changed files with 218 additions and 224 deletions

View file

@ -109,7 +109,7 @@ const ActivateForm = () => {
<h2 className="text-[32px] font-bold text-gray-900">{t('login.invalid')}</h2>
</div>
<div className="w-full mx-auto mt-6">
<Button type='primary' className='w-full !fone-medium !text-sm'>
<Button variant='primary' className='w-full !fone-medium !text-sm'>
<a href="https://dify.ai">{t('login.explore')}</a>
</Button>
</div>
@ -195,7 +195,7 @@ const ActivateForm = () => {
</div>
<div>
<Button
type='primary'
variant='primary'
className='w-full !fone-medium !text-sm'
onClick={handleActivate}
>
@ -226,7 +226,7 @@ const ActivateForm = () => {
</h2>
</div>
<div className="w-full mx-auto mt-6">
<Button type='primary' className='w-full !fone-medium !text-sm'>
<Button variant='primary' className='w-full !fone-medium !text-sm'>
<a href="/signin">{t('login.activated')}</a>
</Button>
</div>