 
   getFullMonthName: ->
     @props.date?.format?('MMMM')
-
-  onTaskDrop: -> #(planId, ev) ->
-    plan = TeacherTaskPlanStore.get(planId)
-    day = ev.target.textContent
 
   onDrop: (item, offset) ->
     return unless @state.hoveredDay

_ = require 'underscore'
classnames = require 'classnames'
qs = require 'qs'

{DropTarget} = require 'react-dnd'
{Calendar, Month, Week, Day} = require 'react-calendar'
{TeacherTaskPlanStore} = require '../../flux/teacher-task-plan'

      })
      @context.router.transitionTo(url)
    else # is a task plan to clone
      @setState(
        cloningPlan: extend({}, item,
          due_at: @state.hoveredDay
          position: offset
        )
      )

  onCloneLoaded: (newPlanId) ->
    _.defer => # give flux store time to update
      @setState(editingPlanId: newPlanId, cloningPlan: undefined)

  getEditingPlanEl: ->
    return null unless @state.editingPlanId
    ReactDOM.findDOMNode(@).querySelector(
      ".course-plan-#{@state.editingPlanId}"
    )

  onHover: (day) ->
    @setState(hoveredDay: day)

  onSidebarToggle: (isOpen) ->
    @setState(showingSideBar: isOpen)

  render: ->
