Example #1
0
 componentDidMount() {
   if (stickyfill === null) {
     stickyfill = Stickyfill();
   }
   const children = findDOMNode(this).children;
   for (let i = 0; i < children.length; i += 1) {
     stickyfill.add(children[i]);
   }
 }
Example #2
0
import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
import nicar from '../nicar.json';
import _ from 'lodash';
import localforage from 'localforage';
import update from 'react-addons-update';
import classNames from 'classnames';
import moment from 'moment';
import StickyFill from 'stickyfill';
import stickyPosition from 'sticky-position';


let stickyfill = StickyFill()

const days = ['Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'];

class Time extends Component {
  constructor(props) {
    super(props);
  }

  render() {
    let date = moment(this.props.children)
    return (
      <span className="time">{date.format('h:mm a')}</span>
      )
  }
}

class Session extends Component {
  constructor(props) {