about summary refs log tree commit diff
path: root/src/view/com
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-10-10 10:08:04 -0700
committerGitHub <noreply@github.com>2023-10-10 10:08:04 -0700
commit098f4b526ebbd62fd2517a55e46f1419f277f904 (patch)
treeec760399678238d04d877f23ebb9bc7c44f93dd1 /src/view/com
parentf452ce74f4fe5ed5aa215b4b18302623f435d0d2 (diff)
downloadvoidsky-098f4b526ebbd62fd2517a55e46f1419f277f904.tar.zst
Revert "Fix invite codes flash on desktop, use loading placeholder (#1591)" (#1656)
This reverts commit 9278822088d212c9bee6a40a6a8b773bc482242d.
Diffstat (limited to 'src/view/com')
-rw-r--r--src/view/com/modals/InviteCodes.tsx27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/view/com/modals/InviteCodes.tsx b/src/view/com/modals/InviteCodes.tsx
index 0cb0c56aa..09cfd4de7 100644
--- a/src/view/com/modals/InviteCodes.tsx
+++ b/src/view/com/modals/InviteCodes.tsx
@@ -26,33 +26,6 @@ export function Component({}: {}) {
     store.shell.closeModal()
   }, [store])
 
-  if (store.me.invites === null) {
-    return (
-      <View style={[styles.container, pal.view]} testID="inviteCodesModal">
-        <Text type="title-xl" style={[styles.title, pal.text]}>
-          Error
-        </Text>
-        <Text type="lg" style={[styles.description, pal.text]}>
-          An error occurred while loading invite codes.
-        </Text>
-        <View style={styles.flex1} />
-        <View
-          style={[
-            styles.btnContainer,
-            isTabletOrDesktop && styles.btnContainerDesktop,
-          ]}>
-          <Button
-            type="primary"
-            label="Done"
-            style={styles.btn}
-            labelStyle={styles.btnLabel}
-            onPress={onClose}
-          />
-        </View>
-      </View>
-    )
-  }
-
   if (store.me.invites.length === 0) {
     return (
       <View style={[styles.container, pal.view]} testID="inviteCodesModal">