From f0263eabc7df6d6c8fa6852edb359aa1b1a9a55c Mon Sep 17 00:00:00 2001 From: Martijn Russchen Date: Sat, 17 Nov 2018 14:15:20 +0100 Subject: [PATCH] Remove last bits of Moment (#1545) --- examples/hello-world/package.json | 1 - examples/hello-world/src/App.js | 3 +-- rollup.umd.config.js | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json index 8367fb072..1d6d79a03 100644 --- a/examples/hello-world/package.json +++ b/examples/hello-world/package.json @@ -6,7 +6,6 @@ "react-scripts": "0.2.0" }, "dependencies": { - "moment": "^2.15.1", "react": "^15.2.1", "react-datepicker": "^0.30.0", "react-dom": "^15.2.1" diff --git a/examples/hello-world/src/App.js b/examples/hello-world/src/App.js index bab3af7a5..bad00db5b 100644 --- a/examples/hello-world/src/App.js +++ b/examples/hello-world/src/App.js @@ -1,6 +1,5 @@ import React, { Component } from "react"; import DatePicker from "react-datepicker"; -import moment from "moment"; import "react-datepicker/dist/react-datepicker.css"; @@ -8,7 +7,7 @@ class App extends Component { constructor() { super(); this.state = { - startDate: moment() + startDate: new Date() }; } diff --git a/rollup.umd.config.js b/rollup.umd.config.js index 7f9c427c2..803769c00 100644 --- a/rollup.umd.config.js +++ b/rollup.umd.config.js @@ -13,7 +13,6 @@ const umdConfig = Object.assign({}, config, { "prop-types": "PropTypes", "react-onclickoutside": "onClickOutside", "react-popper": "ReactPopper", - moment: "moment", classnames: "classNames" } });