diff options
| author | jackyzha0 <[email protected]> | 2020-05-22 20:27:45 -0700 |
|---|---|---|
| committer | jackyzha0 <[email protected]> | 2020-05-22 20:27:45 -0700 |
| commit | 5ea295f857952d80d2423be78618e5e3841fdec7 (patch) | |
| tree | f50aaebd9d3af23a067e5085f8f3aa2272441ecd /frontend/src/components/modals | |
| parent | Merge pull request #29 from jackyzha0/order-langs (diff) | |
| download | ctrl-v-5ea295f857952d80d2423be78618e5e3841fdec7.tar.xz ctrl-v-5ea295f857952d80d2423be78618e5e3841fdec7.zip | |
styling fixes
Diffstat (limited to 'frontend/src/components/modals')
| -rw-r--r-- | frontend/src/components/modals/PasteModal.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/components/modals/PasteModal.js b/frontend/src/components/modals/PasteModal.js index 75c28a8..48ea372 100644 --- a/frontend/src/components/modals/PasteModal.js +++ b/frontend/src/components/modals/PasteModal.js @@ -22,7 +22,8 @@ const PasteModal = (props) => { const clipboard = useClipboard({ copiedTimeout: 3000 }); Modal.setAppElement('body'); - const redir = () => { + const redir = (e) => { + e.preventDefault(); const redirUrl = `/${props.hash}` history.push(redirUrl); } |