aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/NewPaste.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2020-09-17 10:49:25 -0700
committerjackyzha0 <[email protected]>2020-09-17 10:49:25 -0700
commitdaa7207cd6a9ed072a235aea931b46f46df924a5 (patch)
tree8ff5374bd2ef9ead608b065938b5ae74c03611e1 /frontend/src/components/NewPaste.js
parentpatch bad render mode for non latex and markdown (diff)
downloadctrl-v-daa7207cd6a9ed072a235aea931b46f46df924a5.tar.xz
ctrl-v-daa7207cd6a9ed072a235aea931b46f46df924a5.zip
better indentation
Diffstat (limited to 'frontend/src/components/NewPaste.js')
-rw-r--r--frontend/src/components/NewPaste.js6
1 files changed, 0 insertions, 6 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js
index f778a05..ff945a0 100644
--- a/frontend/src/components/NewPaste.js
+++ b/frontend/src/components/NewPaste.js
@@ -77,15 +77,9 @@ const NewPaste = () => {
}
}
- function insertTab(start, end, callback) {
- setContent(content.substring(0, start) + ' ' + content.substring(end))
- callback()
- }
-
function renderPreview() {
const pasteInput = <PasteInput
onChange={(e) => { setContent(e.target.value) }}
- insertTabCallback={insertTab}
content={content}
maxLength="100000"
id="pasteInput" />