staging #223

Merged
b merged 28 commits from staging into main 2024-10-09 13:50:23 +00:00
Showing only changes of commit 67d545de2f - Show all commits

View File

@ -10,9 +10,14 @@ import { launch as launchNostrLoginDialog } from 'nostr-login'
import { Container } from '../../../components/Container' import { Container } from '../../../components/Container'
import PeopleIcon from '@mui/icons-material/People' import PeopleIcon from '@mui/icons-material/People'
import ImportExportIcon from '@mui/icons-material/ImportExport' import ImportExportIcon from '@mui/icons-material/ImportExport'
import { useAppSelector } from '../../../hooks/store'
import { NostrLoginAuthMethod } from '../../../store/auth/types'
export const NostrLoginPage = () => { export const NostrLoginPage = () => {
const theme = useTheme() const theme = useTheme()
const nostrLoginAuthMethod = useAppSelector(
(state) => state.auth?.nostrLoginAuthMethod
)
return ( return (
<Container> <Container>
@ -50,6 +55,7 @@ export const NostrLoginPage = () => {
}} }}
/> />
</ListItemButton> </ListItemButton>
{nostrLoginAuthMethod === NostrLoginAuthMethod.Local && (
<ListItemButton <ListItemButton
onClick={() => { onClick={() => {
launchNostrLoginDialog('import') launchNostrLoginDialog('import')
@ -65,6 +71,7 @@ export const NostrLoginPage = () => {
}} }}
/> />
</ListItemButton> </ListItemButton>
)}
</List> </List>
</Container> </Container>
) )