about summary refs log tree commit diff
path: root/src/state/models/ui/shell.ts
diff options
context:
space:
mode:
authorOllie H <renahlee@outlook.com>2023-05-02 21:00:18 -0700
committerGitHub <noreply@github.com>2023-05-02 23:00:18 -0500
commit95f8360d19938d00aaf9036a76616a7b82093703 (patch)
tree30c405a73df2d3f2cfeda6e4f4d044e5903ac12c /src/state/models/ui/shell.ts
parentaf905947bc4835cfff6f748851c95ac75cb7fb23 (diff)
downloadvoidsky-95f8360d19938d00aaf9036a76616a7b82093703.tar.zst
Add keyboard shortcuts: new, escape, and hard break (#552)
* Add keyboard shortcuts: new, escape, and hard break

* Add preferences modal

* Remove code accidentally re-added due to rebase

* Fix incorrect copy and lint

* Put stuff back so diffs are clearer

* Re-add invite codes to settings

* Address comments

* Tune the copy

---------

Co-authored-by: Paul Frazee <pfrazee@gmail.com>
Diffstat (limited to 'src/state/models/ui/shell.ts')
-rw-r--r--src/state/models/ui/shell.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/models/ui/shell.ts b/src/state/models/ui/shell.ts
index 5942ec100..0b0da0001 100644
--- a/src/state/models/ui/shell.ts
+++ b/src/state/models/ui/shell.ts
@@ -11,6 +11,7 @@ export interface ConfirmModal {
   title: string
   message: string | (() => JSX.Element)
   onPressConfirm: () => void | Promise<void>
+  onPressCancel?: () => void | Promise<void>
 }
 
 export interface EditProfileModal {
@@ -86,10 +87,10 @@ export interface ContentFilteringSettingsModal {
 
 export type Modal =
   // Account
+  | AddAppPasswordModal
   | ChangeHandleModal
   | DeleteAccountModal
   | EditProfileModal
-  | AddAppPasswordModal
 
   // Curation
   | ContentFilteringSettingsModal