add hints

This commit is contained in:
Bekbolsun
2024-02-16 20:09:33 +06:00
parent a60fcd65b5
commit b98339e177
3 changed files with 20 additions and 8 deletions

View File

@@ -100,7 +100,7 @@ export const ModalLogin = () => {
if (isPopup && isModalOpened) {
swicCall('fetchPendingRequests', npub, appNpub)
fetchNpubNames(npub).then(names => {
fetchNpubNames(npub).then((names) => {
if (names.length) {
setValue('username', `${names[0]}@${DOMAIN}`)
}
@@ -141,10 +141,17 @@ export const ModalLogin = () => {
{...register('password')}
{...inputProps}
error={!!errors.password}
helperText={'Password you set in Cloud Sync settings'}
/>
<Button type="submit" fullWidth disabled={isLoading}>
Add account {isLoading && <LoadingSpinner />}
</Button>
<Stack gap={'0.5rem'}>
<Button type="submit" fullWidth disabled={isLoading}>
Add account {isLoading && <LoadingSpinner />}
</Button>
<Typography padding={'0 0.5rem'} noWrap variant="body2" color={'GrayText'}>
Import your keys from another nsec.app instance
</Typography>
</Stack>
</Stack>
</Modal>
)