diff options
| author | jackyzha0 <[email protected]> | 2021-03-06 16:18:50 -0800 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2021-03-06 16:18:50 -0800 |
| commit | 9aab99beea5af56f2329eb6de421617994435354 (patch) | |
| tree | bbdd7fb4957f9c0112e841cacbc68902716c1310 /frontend/src/components/modals/PasteModal.js | |
| parent | update watermark styling (diff) | |
| download | ctrl-v-9aab99beea5af56f2329eb6de421617994435354.tar.xz ctrl-v-9aab99beea5af56f2329eb6de421617994435354.zip | |
paste modal fixes
Diffstat (limited to 'frontend/src/components/modals/PasteModal.js')
| -rw-r--r-- | frontend/src/components/modals/PasteModal.js | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/frontend/src/components/modals/PasteModal.js b/frontend/src/components/modals/PasteModal.js index ff2e639..a6d637f 100644 --- a/frontend/src/components/modals/PasteModal.js +++ b/frontend/src/components/modals/PasteModal.js @@ -1,6 +1,6 @@ import React from 'react'; import Modal from 'react-modal'; -import {LeftPad, ModalHeader, modalStyles, RightPad} from './shared' +import {Form, LeftPad, ModalHeader, modalStyles, RightPad} from './shared' import { useHistory } from 'react-router-dom'; import { Text } from '../Inputs' import { useClipboard } from 'use-clipboard-copy'; @@ -24,30 +24,27 @@ const PasteModal = (props) => { style={modalStyles} contentLabel="paste created" > - <form onSubmit={redir}> - <LeftPad> - <ModalHeader><span role="img" aria-label="success">📎 </span>paste created</ModalHeader> - </LeftPad> - <RightPad> - <Text - type="text" - value={fullURL} - readOnly - ref={clipboard.target} /> - </RightPad> - <LeftPad> - <Button - type="submit"> - view - </Button> - <Button - secondary - type="button" - onClick={clipboard.copy}> - {clipboard.copied ? 'copied' : 'copy url'} - </Button> - </LeftPad> - </form> + <Form onSubmit={redir}> + <ModalHeader> + <span role="img" aria-label="success">📎 </span>paste created + </ModalHeader> + <Text + label="url" + type="text" + value={fullURL} + readOnly + ref={clipboard.target} /> + <Button + type="submit"> + go to paste + </Button> + <Button + secondary + type="button" + onClick={clipboard.copy}> + {clipboard.copied ? 'copied' : 'copy url'} + </Button> + </Form> </Modal> ); } |