       deckChecked: [false, false, false, false]
       title: ''
       tags: []
+  handlePreClick: ->
+    {deckChecked, title, tags} = @state
+    deck = @props.getDeckDetail deckChecked, tags
+    @setState
+      deck: deck
+      showPre: true
+  close: ->
+    @setState
+      showPre: false
   handleClickCheckbox: (index) ->
     {deckChecked} = @state
     if deckChecked isnt []

{React, ReactBootstrap} = window
{Button, Input, Label} = ReactBootstrap
i18n = require '../node_modules/i18n'
{__} = i18n

TagsInputContainer = require './tagsInputContainer'

AddDataTab = React.createClass
  getInitialState: ->

    saveDisable: true
    tags: []
    deckChecked: [false, false, false, false]
    showPre: false
    deck: ''
  componentWillReceiveProps: (nextProps)->
    if nextProps.indexKey is nextProps.selectedKey
      @setState
