about summary refs log tree commit diff
path: root/src/components/Lists.tsx
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-05-15 16:05:17 +0100
committerGitHub <noreply@github.com>2024-05-15 16:05:17 +0100
commited8922281af46071375f47112fbb37ba5b7d578b (patch)
treee1165525e3271efa044e2d3f7ef622c6632e168a /src/components/Lists.tsx
parent2121b5f86f5229914256c7a818086aaaf4c3581a (diff)
downloadvoidsky-ed8922281af46071375f47112fbb37ba5b7d578b.tar.zst
[🐴] Show if user can be messaged in new chat search (#4021)
* show if user can be messaged

* allow 2 lines in handle field due to new text

* cannot -> can't

* rework canBeMessaged logic and move to new file

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/components/Lists.tsx')
-rw-r--r--src/components/Lists.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Lists.tsx b/src/components/Lists.tsx
index 721e877be..8cbe2810e 100644
--- a/src/components/Lists.tsx
+++ b/src/components/Lists.tsx
@@ -136,6 +136,7 @@ let ListMaybePlaceholder = ({
   onGoBack,
   hideBackButton,
   sideBorders,
+  topBorder = true,
 }: {
   isLoading: boolean
   noEmpty?: boolean
@@ -149,6 +150,7 @@ let ListMaybePlaceholder = ({
   onGoBack?: () => void
   hideBackButton?: boolean
   sideBorders?: boolean
+  topBorder?: boolean
 }): React.ReactNode => {
   const t = useTheme()
   const {_} = useLingui()
@@ -165,7 +167,7 @@ let ListMaybePlaceholder = ({
           {paddingTop: 175, paddingBottom: 110},
         ]}
         sideBorders={sideBorders ?? gtMobile}
-        topBorder={!gtTablet}>
+        topBorder={topBorder && !gtTablet}>
         <View style={[a.w_full, a.align_center, {top: 100}]}>
           <Loader size="xl" />
         </View>