Replace some old modal models that got missed
This commit is contained in:
parent
58b187ce7c
commit
3e19728618
2 changed files with 6 additions and 4 deletions
|
@ -20,7 +20,6 @@ import {UserAvatar} from '../com/util/UserAvatar'
|
|||
import {usePalette} from 'lib/hooks/usePalette'
|
||||
import {AccountData} from 'state/models/session'
|
||||
import {useAnalytics} from 'lib/analytics'
|
||||
import {DeleteAccountModal} from 'state/models/shell-ui'
|
||||
|
||||
export const Settings = observer(function Settings({
|
||||
navIdx,
|
||||
|
@ -66,7 +65,7 @@ export const Settings = observer(function Settings({
|
|||
store.session.logout()
|
||||
}
|
||||
const onPressDeleteAccount = () => {
|
||||
store.shell.openModal(new DeleteAccountModal())
|
||||
store.shell.openModal({name: 'delete-account'})
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue