From a77e412cb030d92992e5e541879f9a0662f7073b Mon Sep 17 00:00:00 2001
From: Jules Laplace <jules@okfoc.us>
Date: Mon, 20 Mar 2017 05:17:29 +0100
Subject: admins and managers can delete users

---
 client/components/MealFilter.jsx | 52 ++--------------------------------------
 1 file changed, 2 insertions(+), 50 deletions(-)

(limited to 'client/components/MealFilter.jsx')

diff --git a/client/components/MealFilter.jsx b/client/components/MealFilter.jsx
index c62f232..b576418 100644
--- a/client/components/MealFilter.jsx
+++ b/client/components/MealFilter.jsx
@@ -1,10 +1,7 @@
 import React from 'react'
-
-import client from '../client'
-
-import moment from 'moment'
-
 import { DateRange } from 'react-date-range';
+import moment from 'moment'
+import client from '../client'
 
 export default class MealFilter extends React.Component {
   constructor(){
@@ -123,48 +120,3 @@ export default class MealFilter extends React.Component {
     )
   }
 }
-
-
-// class MealFilter extends React.Component {
-//   constructor(props){
-//     super()
-//     this.state = {
-//       fromDate: new Date (),
-//       toDate: new Date (),
-//       fromTime: new Date (),
-//       toTime: new Date (),
-//     }
-//     this.updateState = this.updateState.bind(this)
-//   }
-//   updateState(e){
-//     const name = event.target.name
-//     let value = event.target.value
-//     if (name === 'date') {
-//       value = new Date(value + 'T' + this.state.date.split("T")[1] ).toString()
-//     } else if (name === 'time') {
-//       value = new Date(this.state.date.split("T")[0] + value).toString()
-//     }
-//     this.setState({
-//       [name]: value,
-//       error: null,
-//     })
-//   }
-//   render () {
-//     const fromDate = parseDate(this.state.fromDate)
-//     const toDate = parseDate(this.state.toDate)
-//     const fromTime = parseTime(this.state.fromTime)
-//     const toTime = parseTime(this.state.toTime)
-//     return (
-//       <div>
-//         Filter by date:
-//         <input type='date' name='fromDate' placeholder='From date' value={fromDate} required onChange={this.updateState} />
-//         to
-//         <input type='date' name='toDate' placeholder='To date' value={toDate} required onChange={this.updateState} />
-//         and from time
-//         <input type='time' name='fromTime' placeholder='From iime' value={fromTime} required onChange={this.updateState} step='3600' />
-//         to
-//         <input type='time' name='toTime' placeholder='To time' value={toTime} required onChange={this.updateState} step='3600' />
-//       </div>
-//     )
-//   }
-// }
-- 
cgit v1.2.3-70-g09d2

