From 81d842cc8c19830c2d3de6291ef3be545adbf239 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Mon, 13 Nov 2017 11:26:52 +0100 Subject: [PATCH] move default props --- src/interface/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/interface/index.js b/src/interface/index.js index a0beb48..1ff206a 100644 --- a/src/interface/index.js +++ b/src/interface/index.js @@ -222,10 +222,6 @@ class Interface extends React.Component { ); } } -Interface.defaultProps = { - width: 720, - height: 480 -}; Interface.propTypes = { geometry(props, propName) { if (!(props[propName].isGeometry || props[propName].isBufferGeometry)) { @@ -253,6 +249,8 @@ Interface.defaultProps = { defaultQuality: 'medium', material: materialSettings, defaultMaterial: 'pla', + width: 720, + height: 480, pixelRatio: 1 };