about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-02-24 10:07:01 -0600
committerPaul Frazee <pfrazee@gmail.com>2023-02-24 10:07:01 -0600
commit3e197286188f2d5220afc23d010542af25457883 (patch)
tree7fe7b001acc593547962362c0569f2c52e932e47 /src
parent58b187ce7c318fa21c93b4f6e6b7052353ec2f0f (diff)
downloadvoidsky-3e197286188f2d5220afc23d010542af25457883.tar.zst
Replace some old modal models that got missed
Diffstat (limited to 'src')
-rw-r--r--src/view/com/login/Signin.tsx7
-rw-r--r--src/view/screens/Settings.tsx3
2 files changed, 6 insertions, 4 deletions
diff --git a/src/view/com/login/Signin.tsx b/src/view/com/login/Signin.tsx
index a311e2999..9604a32f3 100644
--- a/src/view/com/login/Signin.tsx
+++ b/src/view/com/login/Signin.tsx
@@ -23,7 +23,6 @@ import {createFullHandle} from 'lib/strings/handles'
 import {toNiceDomain} from 'lib/strings/url-helpers'
 import {useStores, RootStoreModel, DEFAULT_SERVICE} from 'state/index'
 import {ServiceDescription} from 'state/models/session'
-import {ServerInputModal} from 'state/models/shell-ui'
 import {AccountData} from 'state/models/session'
 import {isNetworkError} from 'lib/strings/errors'
 import {usePalette} from 'lib/hooks/usePalette'
@@ -488,7 +487,11 @@ const ForgotPasswordForm = ({
   // }, [screen])
 
   const onPressSelectService = () => {
-    store.shell.openModal(new ServerInputModal(serviceUrl, setServiceUrl))
+    store.shell.openModal({
+      name: 'server-input',
+      initialService: serviceUrl,
+      onSelect: setServiceUrl,
+    })
   }
 
   const onPressNext = async () => {
diff --git a/src/view/screens/Settings.tsx b/src/view/screens/Settings.tsx
index 94f5acd93..437b0f6c6 100644
--- a/src/view/screens/Settings.tsx
+++ b/src/view/screens/Settings.tsx
@@ -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 (