From 2bcc09448a669712b66f09f63fe0dc94eb03dfbc Mon Sep 17 00:00:00 2001
From: Simon Egersand <s.egersand@gmail.com>
Date: Sat, 29 Jul 2017 18:47:31 +0200
Subject: [PATCH] Update indentation and style for consistency

---
 DateTime.js |   17 +++++++----------
 1 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/DateTime.js b/DateTime.js
index 4a0a1d8..f04433e 100644
--- a/DateTime.js
+++ b/DateTime.js
@@ -1,8 +1,8 @@
 'use strict';
 
 var assign = require('object-assign'),
-        PropTypes = require('prop-types'),
-        createClass = require('create-react-class'),
+	PropTypes = require('prop-types'),
+    createClass = require('create-react-class'),
 	moment = require('moment'),
 	React = require('react'),
 	CalendarContainer = require('./src/CalendarContainer')
@@ -101,13 +101,11 @@
 	},
 
 	getUpdateOn: function( formats ) {
-		if ( formats.date.match(/[lLD]/) ) {
+        if ( formats.date.match(/[lLD]/) ) {
 			return 'days';
-		}
-		else if ( formats.date.indexOf('M') !== -1 ) {
+		} else if ( formats.date.indexOf('M') !== -1 ) {
 			return 'months';
-		}
-		else if ( formats.date.indexOf('Y') !== -1 ) {
+		} else if ( formats.date.indexOf('Y') !== -1 ) {
 			return 'years';
 		}
 
@@ -205,8 +203,7 @@
 		if ( localMoment.isValid() && !this.props.value ) {
 			update.selectedDate = localMoment;
 			update.viewDate = localMoment.clone().startOf('month');
-		}
-		else {
+		} else {
 			update.selectedDate = null;
 		}
 
@@ -296,7 +293,7 @@
 			viewDate = this.state.viewDate,
 			currentDate = this.state.selectedDate || viewDate,
 			date
-    ;
+		;
 
 		if (target.className.indexOf('rdtDay') !== -1) {
 			if (target.className.indexOf('rdtNew') !== -1)

--
Gitblit v1.9.3