diff options
| author | jackyzha0 <[email protected]> | 2021-03-06 16:09:51 -0800 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2021-03-06 16:09:51 -0800 |
| commit | dbf726d9e021a692254defdab8b993063b15354f (patch) | |
| tree | 1853ac5edece80de76346df0bff47cda4e4310ae /frontend/src/components/NewPaste.js | |
| parent | fix modal zindex (diff) | |
| download | ctrl-v-dbf726d9e021a692254defdab8b993063b15354f.tar.xz ctrl-v-dbf726d9e021a692254defdab8b993063b15354f.zip | |
update watermark styling
Diffstat (limited to 'frontend/src/components/NewPaste.js')
| -rw-r--r-- | frontend/src/components/NewPaste.js | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/frontend/src/components/NewPaste.js b/frontend/src/components/NewPaste.js index 5bc35a2..1420ce9 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.detect); + const [language, setLanguage] = useState('detect'); const [expiry, setExpiry] = useState(''); const [hash, setHash] = useState(''); const [isPreview, setIsPreview] = useState(false); @@ -138,12 +138,15 @@ const NewPaste = () => { onPassChange={(e) => { setPass(e.target.value) }} onLangChange={(e) => { setLanguage(e.target.value) }} onExpiryChange={(e) => { setExpiry(e.target.value) }} /> - <SubmitButton type="submit" value="new paste" /> - {language !== LANGS.detect && <Button - type="button" - onClick={() => setIsPreview(!isPreview)}> - preview - </Button>} + <div> + <SubmitButton type="submit" value="new paste" /> + {language !== 'detect' && <Button + secondary + type="button" + onClick={() => setIsPreview(!isPreview)}> + preview + </Button>} + </div> <br /> <Error ref={ErrorLabel} /> </form> |