aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/NewPaste.js
diff options
context:
space:
mode:
authorjackyzha0 <[email protected]>2021-03-06 13:54:03 -0800
committerjackyzha0 <[email protected]>2021-03-06 13:54:03 -0800
commit57584eeb0f8ba7212c613e0c79c20ec3dd67efc5 (patch)
treefbee17a382681d430ec6d8d412dc5d6fa2a8906a /frontend/src/components/NewPaste.js
parentbase editor comp (diff)
downloadctrl-v-57584eeb0f8ba7212c613e0c79c20ec3dd67efc5.tar.xz
ctrl-v-57584eeb0f8ba7212c613e0c79c20ec3dd67efc5.zip
code input style finalizations
Diffstat (limited to 'frontend/src/components/NewPaste.js')
-rw-r--r--frontend/src/components/NewPaste.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js
index 506d66c..14a8024 100644
--- a/frontend/src/components/NewPaste.js
+++ b/frontend/src/components/NewPaste.js
@@ -34,7 +34,7 @@ const NewPaste = () => {
const [title, setTitle] = useState('');
const [content, setContent] = useState('');
const [pass, setPass] = useState('');
- const [language, setLanguage] = useState(LANGS.auto);
+ const [language, setLanguage] = useState(LANGS.detect);
const [expiry, setExpiry] = useState('');
const [hash, setHash] = useState('');
const [isPreview, setIsPreview] = useState(false);
@@ -76,8 +76,7 @@ const NewPaste = () => {
const pasteInput = <Code
setContentCallback={setContent}
content={content}
- maxLength="100000"
- id="pasteInput" />
+ maxLength="100000" />
if (isPreview) {
var preview