diff --git a/src/components/TypeWriter.jsx b/src/components/TypeWriter.jsx index 8130c78..6f66741 100644 --- a/src/components/TypeWriter.jsx +++ b/src/components/TypeWriter.jsx @@ -93,7 +93,7 @@ class TypeWriter extends React.Component { } render() { - const { + let { children, fixed, container, @@ -104,9 +104,14 @@ class TypeWriter extends React.Component { } = this.state; const Container = container; - const containerComponent = {children}; const hideStyle = fixed ? {visibility: 'hidden'} : {display: 'none'}; + delete props.minDelay; + delete props.maxDelay; + delete props.typing; + + const containerComponent = {children}; + return styleComponentSubstring(containerComponent, hideStyle, visibleChars); }