Add "Who can reply" controls [WIP] (#1954)
* Add threadgating * UI improvements * More ui work * Remove comment * Tweak colors * Add missing keys * Tweak sizing * Only show composer option on non-reply * Flex wrap fix * Move the threadgate control to the top of the composer
This commit is contained in:
parent
f5d014d4c7
commit
28fa5e4919
21 changed files with 883 additions and 148 deletions
|
@ -108,9 +108,16 @@ export function PostCtrls({
|
|||
<View style={[styles.ctrls, style]}>
|
||||
<TouchableOpacity
|
||||
testID="replyBtn"
|
||||
style={[styles.ctrl, !big && styles.ctrlPad, {paddingLeft: 0}]}
|
||||
style={[
|
||||
styles.ctrl,
|
||||
!big && styles.ctrlPad,
|
||||
{paddingLeft: 0},
|
||||
post.viewer?.replyDisabled ? {opacity: 0.5} : undefined,
|
||||
]}
|
||||
onPress={() => {
|
||||
requireAuth(() => onPressReply())
|
||||
if (!post.viewer?.replyDisabled) {
|
||||
requireAuth(() => onPressReply())
|
||||
}
|
||||
}}
|
||||
accessibilityRole="button"
|
||||
accessibilityLabel={`Reply (${post.replyCount} ${
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue