-_               = require 'lodash'
 kd              = require 'kd'
 React           = require 'kd-react'
 TeamFlux        = require 'app/flux/teams'

      onTeamNameChanged={@bound 'onTeamNameChanged'}/>


updateTeam = ({ dataToUpdate }) ->

  TeamFlux.actions.updateTeam(dataToUpdate).then ({ message }) ->
    notify message
  .catch ({ message }) ->
    notify message


HomeTeamSettingsContainer.include [KDReactorMixin]

      team={@state.team}
      teamName={@state.teamName}
      canEdit={@state.canEdit}
      loading={@state.loading}
      logopath={@state.logopath}
      onUploadInput={@bound 'onUploadInput'}
      onClickLogo={@bound 'onClickLogo'}
