mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-18 17:51:28 +00:00
chore: update style
This commit is contained in:
@@ -163,13 +163,19 @@ const LoginForm = () => {
|
|||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
{t('auth.login.forgot_password')}
|
{t('auth.login.forgot_password')}
|
||||||
<Link to='/reset' style={{ color: '#2185d0' }}>
|
<Link
|
||||||
|
to='/reset'
|
||||||
|
style={{ color: '#2185d0', marginLeft: '2px' }}
|
||||||
|
>
|
||||||
{t('auth.login.reset_password')}
|
{t('auth.login.reset_password')}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{t('auth.login.no_account')}
|
{t('auth.login.no_account')}
|
||||||
<Link to='/register' style={{ color: '#2185d0' }}>
|
<Link
|
||||||
|
to='/register'
|
||||||
|
style={{ color: '#2185d0', marginLeft: '2px' }}
|
||||||
|
>
|
||||||
{t('auth.login.register')}
|
{t('auth.login.register')}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -132,7 +132,9 @@ const PasswordResetConfirm = () => {
|
|||||||
marginBottom: '1.5em',
|
marginBottom: '1.5em',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{disableButton ? t('auth.reset.confirm.button_disabled') : t('auth.reset.confirm.button')}
|
{disableButton
|
||||||
|
? t('auth.reset.confirm.button_disabled')
|
||||||
|
: t('auth.reset.confirm.button')}
|
||||||
</Button>
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
{newPassword && (
|
{newPassword && (
|
||||||
|
@@ -137,7 +137,9 @@ const PasswordResetForm = () => {
|
|||||||
marginBottom: '1.5em',
|
marginBottom: '1.5em',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{disableButton ? t('auth.register.get_code_retry', { countdown }) : t('auth.reset.button')}
|
{disableButton
|
||||||
|
? t('auth.register.get_code_retry', { countdown })
|
||||||
|
: t('auth.reset.button')}
|
||||||
</Button>
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
<Message style={{ background: 'transparent', boxShadow: 'none' }}>
|
<Message style={{ background: 'transparent', boxShadow: 'none' }}>
|
||||||
|
@@ -187,11 +187,8 @@ const RegisterForm = () => {
|
|||||||
name='email'
|
name='email'
|
||||||
type='email'
|
type='email'
|
||||||
action={
|
action={
|
||||||
<Button
|
<Button onClick={sendVerificationCode} disabled={loading}>
|
||||||
onClick={sendVerificationCode}
|
{disableButton
|
||||||
disabled={loading}
|
|
||||||
>
|
|
||||||
{disableButton
|
|
||||||
? t('auth.register.get_code_retry', { countdown })
|
? t('auth.register.get_code_retry', { countdown })
|
||||||
: t('auth.register.get_code')}
|
: t('auth.register.get_code')}
|
||||||
</Button>
|
</Button>
|
||||||
@@ -252,7 +249,10 @@ const RegisterForm = () => {
|
|||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{t('auth.register.has_account')}
|
{t('auth.register.has_account')}
|
||||||
<Link to='/login' style={{ color: '#2185d0' }}>
|
<Link
|
||||||
|
to='/login'
|
||||||
|
style={{ color: '#2185d0', marginLeft: '2px' }}
|
||||||
|
>
|
||||||
{t('auth.register.login')}
|
{t('auth.register.login')}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user