add hints
This commit is contained in:
@@ -100,7 +100,7 @@ export const ModalLogin = () => {
|
|||||||
if (isPopup && isModalOpened) {
|
if (isPopup && isModalOpened) {
|
||||||
swicCall('fetchPendingRequests', npub, appNpub)
|
swicCall('fetchPendingRequests', npub, appNpub)
|
||||||
|
|
||||||
fetchNpubNames(npub).then(names => {
|
fetchNpubNames(npub).then((names) => {
|
||||||
if (names.length) {
|
if (names.length) {
|
||||||
setValue('username', `${names[0]}@${DOMAIN}`)
|
setValue('username', `${names[0]}@${DOMAIN}`)
|
||||||
}
|
}
|
||||||
@@ -141,10 +141,17 @@ export const ModalLogin = () => {
|
|||||||
{...register('password')}
|
{...register('password')}
|
||||||
{...inputProps}
|
{...inputProps}
|
||||||
error={!!errors.password}
|
error={!!errors.password}
|
||||||
|
helperText={'Password you set in Cloud Sync settings'}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<Stack gap={'0.5rem'}>
|
||||||
<Button type="submit" fullWidth disabled={isLoading}>
|
<Button type="submit" fullWidth disabled={isLoading}>
|
||||||
Add account {isLoading && <LoadingSpinner />}
|
Add account {isLoading && <LoadingSpinner />}
|
||||||
</Button>
|
</Button>
|
||||||
|
<Typography padding={'0 0.5rem'} noWrap variant="body2" color={'GrayText'}>
|
||||||
|
Import your keys from another nsec.app instance
|
||||||
|
</Typography>
|
||||||
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Modal>
|
</Modal>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -113,9 +113,14 @@ export const ModalSignUp = () => {
|
|||||||
},
|
},
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
<Stack gap={'0.5rem'}>
|
||||||
<Button fullWidth type="submit" disabled={isLoading}>
|
<Button fullWidth type="submit" disabled={isLoading}>
|
||||||
Create account {isLoading && <LoadingSpinner />}
|
Create account {isLoading && <LoadingSpinner />}
|
||||||
</Button>
|
</Button>
|
||||||
|
<Typography padding={'0 0.5rem'} noWrap variant="body2" color={'GrayText'}>
|
||||||
|
New keys will be generated for you
|
||||||
|
</Typography>
|
||||||
|
</Stack>
|
||||||
</Stack>
|
</Stack>
|
||||||
</Modal>
|
</Modal>
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ const StyledInputContainer = styled((props: BoxProps) => <Box {...props} />)(({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
'& > .helper_text': {
|
'& > .helper_text': {
|
||||||
margin: '0.5rem 1rem 0',
|
margin: '0.5rem 0.5rem 0',
|
||||||
color: theme.palette.text.primary,
|
color: theme.palette.text.primary,
|
||||||
},
|
},
|
||||||
'& > .label': {
|
'& > .label': {
|
||||||
|
|||||||
Reference in New Issue
Block a user