fix: 修改按钮颜色

This commit is contained in:
speakeloudest 2025-08-25 21:22:34 -07:00
parent 20e03d2992
commit 6b8f828277

View File

@ -2,7 +2,7 @@
import useGlobalStore from '@/config/use-global';
import { sendEmailCode, sendSmsCode } from '@/services/common/common';
import { Button } from '@workspace/airo-ui/components/button';
import { AiroButton } from '@workspace/airo-ui/components/AiroButton';
import { useCountDown } from 'ahooks';
import { useTranslations } from 'next-intl';
import { useEffect, useState } from 'react';
@ -81,15 +81,14 @@ export default function SendCode({ type, params }: SendCodeProps) {
(type === 'email' ? !params.email : !params.telephone || !params.telephone_area_code);
return (
<Button
<AiroButton
type='button'
className={
'h-[30px] w-[109px] rounded-full border-[#A8D4ED] bg-[#A8D4ED] text-base hover:bg-[#225BA9] hover:text-white'
}
variant={'primary'}
className={'h-[30px] w-[109px]'}
onClick={handleSendCode}
disabled={disabled}
>
{seconds > 0 ? `${seconds}s` : t('get')}
</Button>
</AiroButton>
);
}