This commit is contained in:
Hailey
2024-10-16 15:38:02 -07:00
committed by Samuel Newman
parent eff4b02176
commit abf1a8d0a7
+3 -15
View File
@@ -559,23 +559,17 @@ export const ComposePost = ({
<ActivityIndicator /> <ActivityIndicator />
</View> </View>
</> </>
) : ( ) : canPost ? (
<View style={[styles.postBtnWrapper]}>
{canPost ? (
<Button <Button
testID="composerPublishBtn" testID="composerPublishBtn"
label={ label={replyTo ? _(msg`Publish reply`) : _(msg`Publish post`)}
replyTo ? _(msg`Publish reply`) : _(msg`Publish post`)
}
variant="solid" variant="solid"
color="primary" color="primary"
shape="default" shape="default"
size="small" size="small"
style={[a.rounded_full, a.py_sm]} style={[a.rounded_full, a.py_sm]}
onPress={() => onPressPublish()} onPress={() => onPressPublish()}
disabled={ disabled={videoState.status !== 'idle' && publishOnUpload}>
videoState.status !== 'idle' && publishOnUpload
}>
<ButtonText style={[a.text_md]}> <ButtonText style={[a.text_md]}>
{replyTo ? ( {replyTo ? (
<Trans context="action">Reply</Trans> <Trans context="action">Reply</Trans>
@@ -592,8 +586,6 @@ export const ComposePost = ({
</View> </View>
)} )}
</View> </View>
)}
</View>
{isAltTextRequiredAndMissing && ( {isAltTextRequiredAndMissing && (
<View style={[styles.reminderLine, pal.viewLight]}> <View style={[styles.reminderLine, pal.viewLight]}>
@@ -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',