|
|
@ -3,8 +3,6 @@ import React from 'react'
|
|
|
|
import HTML5Backend from 'react-dnd-html5-backend'
|
|
|
|
import HTML5Backend from 'react-dnd-html5-backend'
|
|
|
|
import { DragDropContext } from 'react-dnd'
|
|
|
|
import { DragDropContext } from 'react-dnd'
|
|
|
|
import domtoimage from 'dom-to-image'
|
|
|
|
import domtoimage from 'dom-to-image'
|
|
|
|
import debounce from 'lodash.debounce'
|
|
|
|
|
|
|
|
import ms from 'ms'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Ours
|
|
|
|
// Ours
|
|
|
|
import Page from '../components/Page'
|
|
|
|
import Page from '../components/Page'
|
|
|
@ -113,7 +111,7 @@ class Editor extends React.Component {
|
|
|
|
<div className="buttons">
|
|
|
|
<div className="buttons">
|
|
|
|
<Button
|
|
|
|
<Button
|
|
|
|
className="tweetButton"
|
|
|
|
className="tweetButton"
|
|
|
|
onClick={debounce(this.upload, ms('5s'), {leading: true, trailing: false})}
|
|
|
|
onClick={this.upload}
|
|
|
|
title={this.state.uploading ? 'Loading...' : 'Tweet Image'}
|
|
|
|
title={this.state.uploading ? 'Loading...' : 'Tweet Image'}
|
|
|
|
color="#57b5f9"
|
|
|
|
color="#57b5f9"
|
|
|
|
style={{ marginRight: '8px' }}
|
|
|
|
style={{ marginRight: '8px' }}
|
|
|
|