diff --git a/src/web/binaryUpload.coffee b/src/web/binaryUpload.coffee index b6b49dc..066d8fb 100644 --- a/src/web/binaryUpload.coffee +++ b/src/web/binaryUpload.coffee @@ -1,6 +1,6 @@ import React from "react" -import { Redirect } from "react-router-dom" import Dropzone from "react-dropzone" +import LinkButton from "./util/linkButton" import * as crypto from "../crypto" import * as util from "../util" @@ -11,7 +11,6 @@ class BinaryUpload extends React.Component file: null uploading: false progress: 0 - switchToText: false encrypt: false encrypting: false @@ -70,9 +69,6 @@ class BinaryUpload extends React.Component { encrypt: not state.encrypt } render: -> - if @state.switchToText - return -
{({getRootProps, getInputProps}) => @@ -100,13 +96,13 @@ class BinaryUpload extends React.Component > { "Encrypt: " + if @state.encrypt then "ON" else "OFF" } - +
- +
diff --git a/src/web/fileDecrypter.coffee b/src/web/fileDecrypter.coffee index a18ef89..5f816be 100644 --- a/src/web/fileDecrypter.coffee +++ b/src/web/fileDecrypter.coffee @@ -1,5 +1,5 @@ import React from "react" -import { Link } from "react-router-dom" +import LinkButton from "./util/linkButton" import * as crypto from "../crypto" import * as util from "../util" @@ -119,12 +119,13 @@ class FileDecrypter extends React.Component }
- Home - + } diff --git a/src/web/pastebin.coffee b/src/web/pastebin.coffee index 1cfe3f8..a439813 100644 --- a/src/web/pastebin.coffee +++ b/src/web/pastebin.coffee @@ -1,5 +1,5 @@ import React from "react" -import { Redirect } from "react-router-dom" +import LinkButton from "./util/linkButton" import ContentEditable from "./util/contentEditable" class Pastebin extends React.Component @@ -9,7 +9,6 @@ class Pastebin extends React.Component text: "" pasting: false highlight: false # Make this false by default to avoid blocking - switchToUpload: false onEditTextUpdate: (ev) => console.log ev.target.value @@ -54,9 +53,6 @@ class Pastebin extends React.Component pasting: false render: -> - if @state.switchToUpload - return -
Highlight: {if @state.highlight then 'ON' else 'OFF'} - +