diff options
author | Mary <148872143+mary-ext@users.noreply.github.com> | 2024-01-16 04:11:48 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-15 13:11:48 -0800 |
commit | 921b57d1b7b0dab48ed2627725460748fd1a6ff3 (patch) | |
tree | 42d71318cd2423b85e9fc5b825233bf262d93cd7 /src/view/com/lists | |
parent | 12a0ceee8ad5bca998b467e438472f312daacf06 (diff) | |
download | voidsky-921b57d1b7b0dab48ed2627725460748fd1a6ff3.tar.zst |
feat: show muted/blocked status on list card (#2523)
Diffstat (limited to 'src/view/com/lists')
-rw-r--r-- | src/view/com/lists/ListCard.tsx | 18 |
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> |