about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMary <148872143+mary-ext@users.noreply.github.com>2024-01-16 04:11:48 +0700
committerGitHub <noreply@github.com>2024-01-15 13:11:48 -0800
commit921b57d1b7b0dab48ed2627725460748fd1a6ff3 (patch)
tree42d71318cd2423b85e9fc5b825233bf262d93cd7
parent12a0ceee8ad5bca998b467e438472f312daacf06 (diff)
downloadvoidsky-921b57d1b7b0dab48ed2627725460748fd1a6ff3.tar.zst
feat: show muted/blocked status on list card (#2523)
-rw-r--r--src/view/com/lists/ListCard.tsx18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/view/com/lists/ListCard.tsx b/src/view/com/lists/ListCard.tsx
index 28e98144a..5750faec1 100644
--- a/src/view/com/lists/ListCard.tsx
+++ b/src/view/com/lists/ListCard.tsx
@@ -94,15 +94,23 @@ export const ListCard = ({
                 </Trans>
               ))}
           </Text>
-          {!!list.viewer?.muted && (
-            <View style={s.flexRow}>
+          <View style={s.flexRow}>
+            {list.viewer?.muted ? (
               <View style={[s.mt5, pal.btn, styles.pill]}>
                 <Text type="xs" style={pal.text}>
-                  <Trans>Subscribed</Trans>
+                  <Trans>Muted</Trans>
                 </Text>
               </View>
-            </View>
-          )}
+            ) : null}
+
+            {list.viewer?.blocked ? (
+              <View style={[s.mt5, pal.btn, styles.pill]}>
+                <Text type="xs" style={pal.text}>
+                  <Trans>Blocked</Trans>
+                </Text>
+              </View>
+            ) : null}
+          </View>
         </View>
         {renderButton ? (
           <View style={styles.layoutButton}>{renderButton()}</View>