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'}
/>
<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>
)

View File

@@ -113,9 +113,14 @@ export const ModalSignUp = () => {
},
}}
/>
<Stack gap={'0.5rem'}>
<Button fullWidth type="submit" disabled={isLoading}>
Create account {isLoading && <LoadingSpinner />}
</Button>
<Typography padding={'0 0.5rem'} noWrap variant="body2" color={'GrayText'}>
New keys will be generated for you
</Typography>
</Stack>
</Stack>
</Modal>
)

View File

@@ -56,7 +56,7 @@ const StyledInputContainer = styled((props: BoxProps) => <Box {...props} />)(({
},
},
'& > .helper_text': {
margin: '0.5rem 1rem 0',
margin: '0.5rem 0.5rem 0',
color: theme.palette.text.primary,
},
'& > .label': {