File tree Expand file tree Collapse file tree 4 files changed +7
-6
lines changed
Thread/__tests__/__snapshots__ Expand file tree Collapse file tree 4 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,6 @@ const ImageContainer = styled.TouchableOpacity`
5555` ;
5656
5757const HeaderContainer = styled . View `
58- flex: 1;
5958 flex-direction: row;
6059 justify-content: flex-end;
6160 z-index: 1000;
Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ const Container = styled.View`
3737 border-radius: 10px;
3838 flex-direction: column;
3939 margin-horizontal: 10px;
40- padding-top: ${ ( { padding, theme } ) =>
41- padding ? theme . messageInput . container . conditionalPadding : 0 } px;
40+ padding-top: ${ ( { imageUploads, theme } ) =>
41+ imageUploads && imageUploads . length
42+ ? theme . messageInput . container . conditionalPadding
43+ : 0 } px;
4244 ${ ( { theme } ) => theme . messageInput . container . css } ;
4345` ;
4446
@@ -340,7 +342,7 @@ const MessageInput = (props) => {
340342 }
341343
342344 return (
343- < Container padding = { imageUploads && imageUploads . length > 0 } >
345+ < Container imageUploads = { imageUploads } >
344346 { fileUploads && (
345347 < FileUploadPreview
346348 AttachmentFileIcon = { AttachmentFileIcon }
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ exports[`MessageInput should render MessageInput 1`] = `
2121 }
2222 >
2323 <View
24- padding = { false }
24+ imageUploads = { Array [] }
2525 style = {
2626 Array [
2727 Object {
Original file line number Diff line number Diff line change @@ -2063,7 +2063,7 @@ exports[`Thread should match thread snapshot 1`] = `
20632063 </RCTScrollView >
20642064 </View >
20652065 <View
2066- padding = { false }
2066+ imageUploads = { Array [] }
20672067 style = {
20682068 Array [
20692069 Object {
You can’t perform that action at this time.
0 commit comments