diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-10 16:30:14 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-10 16:30:14 -0600 |
commit | d3707f30e30bb717e95b27cc83a1121815b475b5 (patch) | |
tree | 57fcb61e9e937949526713a778e171a6676c9acf /src/view/com/util/Link.tsx | |
parent | ecf56729b0da535f1d0b794268c7856836e76bd6 (diff) | |
download | voidsky-d3707f30e30bb717e95b27cc83a1121815b475b5.tar.zst |
Implement scene invitation and membership controls
Diffstat (limited to 'src/view/com/util/Link.tsx')
-rw-r--r-- | src/view/com/util/Link.tsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/view/com/util/Link.tsx b/src/view/com/util/Link.tsx index 08536b0c3..84060ac01 100644 --- a/src/view/com/util/Link.tsx +++ b/src/view/com/util/Link.tsx @@ -16,7 +16,10 @@ export const Link = observer(function Link({ children?: React.ReactNode }) { const store = useStores() - const onPress = () => store.nav.navigate(href) + const onPress = () => { + store.shell.closeModal() // close any active modals + store.nav.navigate(href) + } const onLongPress = () => { store.shell.openModal(new LinkActionsModel(href, title || href)) } |