From dced0e2a5552a478f4be7b6edf32833e1848dea8 Mon Sep 17 00:00:00 2001 From: Lucas Myers Date: Wed, 28 Oct 2015 16:15:35 -0700 Subject: [PATCH] This file belongs in a different branch --- src/DateTimePickerIcons.js | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 src/DateTimePickerIcons.js diff --git a/src/DateTimePickerIcons.js b/src/DateTimePickerIcons.js deleted file mode 100644 index e9d286be..00000000 --- a/src/DateTimePickerIcons.js +++ /dev/null @@ -1,35 +0,0 @@ -import React, { Component, PropTypes } from "react"; - -export default class DateTimePickerIcons extends Component { - static defaultProps = { - defaultIcons: { - time: 'glyphicon glyphicon-time', - date: 'glyphicon glyphicon-calendar', - up: 'glyphicon glyphicon-chevron-up', - down: 'glyphicon glyphicon-chevron-down', - previous: 'glyphicon glyphicon-chevron-left', - next: 'glyphicon glyphicon-chevron-right', - today: 'glyphicon glyphicon-screenshot', - clear: 'glyphicon glyphicon-trash', - close: 'glyphicon glyphicon-remove' - } - } - - getIcon = () => { - var ret = this.props.icons && this.props.icons[this.props.glyph] ? this.props.icons[this.props.glyph] : this.props.defaultIcons[this.props.glyph]; - return ret; - } - - getClasses = () => { - var ret = this.props.className ? "" + this.props.className + " " + this.getIcon() : this.getIcon(); - return ret; - } - - render() { - return ( - - {this.props.children} - - ); - } -}