Skip to content

Commit

Permalink
chore: update style
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Feb 2, 2025
1 parent c64b7c8 commit 5659fde
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 10 deletions.
10 changes: 8 additions & 2 deletions web/default/src/components/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,19 @@ const LoginForm = () => {
>
<div>
{t('auth.login.forgot_password')}
<Link to='/reset' style={{ color: '#2185d0' }}>
<Link
to='/reset'
style={{ color: '#2185d0', marginLeft: '2px' }}
>
{t('auth.login.reset_password')}
</Link>
</div>
<div>
{t('auth.login.no_account')}
<Link to='/register' style={{ color: '#2185d0' }}>
<Link
to='/register'
style={{ color: '#2185d0', marginLeft: '2px' }}
>
{t('auth.login.register')}
</Link>
</div>
Expand Down
4 changes: 3 additions & 1 deletion web/default/src/components/PasswordResetConfirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ const PasswordResetConfirm = () => {
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>
</Form>
{newPassword && (
Expand Down
4 changes: 3 additions & 1 deletion web/default/src/components/PasswordResetForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ const PasswordResetForm = () => {
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>
</Form>
<Message style={{ background: 'transparent', boxShadow: 'none' }}>
Expand Down
12 changes: 6 additions & 6 deletions web/default/src/components/RegisterForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,8 @@ const RegisterForm = () => {
name='email'
type='email'
action={
<Button
onClick={sendVerificationCode}
disabled={loading}
>
{disableButton
<Button onClick={sendVerificationCode} disabled={loading}>
{disableButton
? t('auth.register.get_code_retry', { countdown })
: t('auth.register.get_code')}
</Button>
Expand Down Expand Up @@ -252,7 +249,10 @@ const RegisterForm = () => {
}}
>
{t('auth.register.has_account')}
<Link to='/login' style={{ color: '#2185d0' }}>
<Link
to='/login'
style={{ color: '#2185d0', marginLeft: '2px' }}
>
{t('auth.register.login')}
</Link>
</div>
Expand Down

0 comments on commit 5659fde

Please sign in to comment.