     queuedArticles: @props.queuedArticles or []
     scheduledArticles: @props.scheduledArticles or []
     feed: @props.feed or 'scheduled'
-
-  componentDidMount: ->
-    headers =
-      'X-Access-Token': sd.USER.get('access_token')
-    @client = new Lokka
-      transport: new Transport(API_URL + '/graphql', {headers})
 
   saveSelected: (data, isQueued) ->
     article = new Article


  setFeed: (type) ->
    @setState feed: type
    # @fetchFeed()

  # fetchFeed: ->
  #   @client.query(query "#{@state.feed}: true, published: true")
  #     .then (result) =>
  #       return if err or not result.body?.data
  #       if @state.feed is 'scheduled'
  #         @setState scheduledArticles: result.body.data.articles
  #       else
  #         @setState queuedArticles: result.body.data.articles
  #         @fetchLatest()

  # fetchLatest: ->
  #   latestQuery = query "channel_id: \"#{sd.CURRENT_CHANNEL.id}\", published: true, sort: \"-published_at\", daily_email: false"
  #   @client.query(latestQuery)
  #     .then (result) =>
  #       return if err or not result.body?.data
  #       @setState publishedArticles: result.body.data.articles

  render: ->
    div {

ArticleList = require '../../../components/article_list/index.coffee'
query = require '../query.coffee'
{ API_URL } = require('sharify').data
request = require 'superagent'

module.exports.QueueView = QueueView = React.createClass

