From daa7207cd6a9ed072a235aea931b46f46df924a5 Mon Sep 17 00:00:00 2001 From: jackyzha0 Date: Thu, 17 Sep 2020 10:49:25 -0700 Subject: better indentation --- frontend/src/components/NewPaste.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'frontend/src/components/NewPaste.js') 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 = { setContent(e.target.value) }} - insertTabCallback={insertTab} content={content} maxLength="100000" id="pasteInput" /> -- cgit v1.2.3