From ed2845832d833fd67be98e1171b10643add24e8f Mon Sep 17 00:00:00 2001 From: Angel Piscola Date: Mon, 2 Apr 2018 10:56:15 -0400 Subject: [PATCH] feat: override instead of assign drawerStyle --- lib/drawer.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/drawer.jsx b/lib/drawer.jsx index a257fc2..c663822 100644 --- a/lib/drawer.jsx +++ b/lib/drawer.jsx @@ -2,7 +2,6 @@ import React from "react"; import PropTypes from "prop-types"; import { Motion, spring } from "react-motion"; import Hammer from "react-hammerjs"; -import assign from "1-liners/assign"; import isFunction from "1-liners/isFunction"; import styles from "./styles"; @@ -199,7 +198,7 @@ export default class Drawer extends React.Component { this.props ); - let computedStyle = assign(drawer, drawerStyle); + let computedStyle = {...drawer, ...drawerStyle }; if (interpolated.myProp > 0) computedStyle.display = "block"; else computedStyle.display = "none";