feat: 搜索页面和一堆更新

This commit is contained in:
qier222 2022-03-29 00:11:05 +08:00
parent 4d7bc14827
commit b4590c3c34
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
17 changed files with 279 additions and 87 deletions

View file

@ -1,6 +1,5 @@
import md5 from 'md5'
import QRCode from 'qrcode'
import { Fragment } from 'react'
import {
checkLoginQrCodeStatus,
fetchLoginQrCodeKey,
@ -166,7 +165,7 @@ const OtherLoginMethods = ({
},
]
return (
<Fragment>
<>
<div className='mt-8 mb-4 flex w-full items-center'>
<span className='h-px flex-grow bg-gray-300 dark:bg-gray-700'></span>
<span className='mx-2 text-sm text-gray-400 '>or</span>
@ -187,7 +186,7 @@ const OtherLoginMethods = ({
)
)}
</div>
</Fragment>
</>
)
}
@ -244,11 +243,11 @@ const LoginWithEmail = () => {
}
return (
<Fragment>
<>
<EmailInput {...{ email, setEmail }} />
<PasswordInput {...{ password, setPassword }} />
<LoginButton onClick={handleLogin} disabled={doLogin.isLoading} />
</Fragment>
</>
)
}
@ -303,11 +302,11 @@ const LoginWithPhone = () => {
}
return (
<Fragment>
<>
<PhoneInput {...{ countryCode, setCountryCode, phone, setPhone }} />
<PasswordInput {...{ password, setPassword }} />
<LoginButton onClick={handleLogin} disabled={doLogin.isLoading} />
</Fragment>
</>
)
}