From 3a11ae8ab38bc48f676b663622de55be9827f963 Mon Sep 17 00:00:00 2001 From: Shaurya Arora Date: Thu, 8 Oct 2015 10:30:01 -0500 Subject: [PATCH] ThemeDecorator now supports props Earlier, props were being lost when using the ThemeDecorator. Now, they are preserved. --- src/styles/theme-decorator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/theme-decorator.js b/src/styles/theme-decorator.js index a66a854636ea27..c35425d72717ad 100644 --- a/src/styles/theme-decorator.js +++ b/src/styles/theme-decorator.js @@ -17,7 +17,7 @@ module.exports = (customTheme) => { }, render() { - return React.createElement(Component, null); + return React.createElement(Component, this.props); }, });