From 38ec39e0b4947c5df202544b42357cc80488e283 Mon Sep 17 00:00:00 2001 From: Bogdan Chadkin Date: Sat, 24 Feb 2018 01:34:34 +0300 Subject: [PATCH] Remove object-assign package in favor of spread operator --- package.json | 3 +-- src/Day.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 2a9368532e..7ae9fe8087 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,6 @@ "webpack": "3.10.0" }, "dependencies": { - "object-assign": "^4.1.1", "prop-types": "^15.6.0" } -} \ No newline at end of file +} diff --git a/src/Day.js b/src/Day.js index c7980653ca..15ee7fe3b4 100644 --- a/src/Day.js +++ b/src/Day.js @@ -1,7 +1,6 @@ /* eslint-disable jsx-a11y/no-static-element-interactions, react/forbid-prop-types */ import React, { Component } from 'react'; -import assign from 'object-assign'; import PropTypes from 'prop-types'; import { isSameDay } from './DateUtils'; import { hasOwnProp } from './Helpers'; @@ -125,7 +124,7 @@ export default class Day extends Component { Object.keys(modifiers) .filter(modifier => !!modifiersStyles[modifier]) .forEach(modifier => { - style = assign({}, style, modifiersStyles[modifier]); + style = { ...style, ...modifiersStyles[modifier] }; }); }