Skip to content

Commit 54104ad

Browse files
Kirnofrostney
authored andcommitted
Fix ignored margin/padding on FormattedMessage (#4)
* Add style to parent Text component
1 parent 0921d54 commit 54104ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FormattedMessage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const FormattedMessage = props => (
1111
}
1212
return node;
1313
});
14-
return createElement(Text, null, ...newNodes);
14+
return createElement(Text, {style: props.style}, ...newNodes);
1515
}}
1616
</Intl.FormattedMessage>
1717
);

0 commit comments

Comments
 (0)