rm
This commit is contained in:
@@ -559,38 +559,30 @@ export const ComposePost = ({
|
|||||||
<ActivityIndicator />
|
<ActivityIndicator />
|
||||||
</View>
|
</View>
|
||||||
</>
|
</>
|
||||||
|
) : canPost ? (
|
||||||
|
<Button
|
||||||
|
testID="composerPublishBtn"
|
||||||
|
label={replyTo ? _(msg`Publish reply`) : _(msg`Publish post`)}
|
||||||
|
variant="solid"
|
||||||
|
color="primary"
|
||||||
|
shape="default"
|
||||||
|
size="small"
|
||||||
|
style={[a.rounded_full, a.py_sm]}
|
||||||
|
onPress={() => onPressPublish()}
|
||||||
|
disabled={videoState.status !== 'idle' && publishOnUpload}>
|
||||||
|
<ButtonText style={[a.text_md]}>
|
||||||
|
{replyTo ? (
|
||||||
|
<Trans context="action">Reply</Trans>
|
||||||
|
) : (
|
||||||
|
<Trans context="action">Post</Trans>
|
||||||
|
)}
|
||||||
|
</ButtonText>
|
||||||
|
</Button>
|
||||||
) : (
|
) : (
|
||||||
<View style={[styles.postBtnWrapper]}>
|
<View style={[styles.postBtn, pal.btn]}>
|
||||||
{canPost ? (
|
<Text style={[pal.textLight, s.f16, s.bold]}>
|
||||||
<Button
|
<Trans context="action">Post</Trans>
|
||||||
testID="composerPublishBtn"
|
</Text>
|
||||||
label={
|
|
||||||
replyTo ? _(msg`Publish reply`) : _(msg`Publish post`)
|
|
||||||
}
|
|
||||||
variant="solid"
|
|
||||||
color="primary"
|
|
||||||
shape="default"
|
|
||||||
size="small"
|
|
||||||
style={[a.rounded_full, a.py_sm]}
|
|
||||||
onPress={() => onPressPublish()}
|
|
||||||
disabled={
|
|
||||||
videoState.status !== 'idle' && publishOnUpload
|
|
||||||
}>
|
|
||||||
<ButtonText style={[a.text_md]}>
|
|
||||||
{replyTo ? (
|
|
||||||
<Trans context="action">Reply</Trans>
|
|
||||||
) : (
|
|
||||||
<Trans context="action">Post</Trans>
|
|
||||||
)}
|
|
||||||
</ButtonText>
|
|
||||||
</Button>
|
|
||||||
) : (
|
|
||||||
<View style={[styles.postBtn, pal.btn]}>
|
|
||||||
<Text style={[pal.textLight, s.f16, s.bold]}>
|
|
||||||
<Trans context="action">Post</Trans>
|
|
||||||
</Text>
|
|
||||||
</View>
|
|
||||||
)}
|
|
||||||
</View>
|
</View>
|
||||||
)}
|
)}
|
||||||
</View>
|
</View>
|
||||||
@@ -997,10 +989,6 @@ const styles = StyleSheet.create({
|
|||||||
paddingVertical: 6,
|
paddingVertical: 6,
|
||||||
marginLeft: 12,
|
marginLeft: 12,
|
||||||
},
|
},
|
||||||
postBtnWrapper: {
|
|
||||||
flexDirection: 'row',
|
|
||||||
gap: 14,
|
|
||||||
},
|
|
||||||
errorLine: {
|
errorLine: {
|
||||||
flexDirection: 'row',
|
flexDirection: 'row',
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user